To **need something ***for something else***** We need this money for the ***kid's baseball team***. [*to* does not work] That isn't needed for ***making a fortune***. [*to make* also works, AND making a fortune is a noun-gerund phrase] I need this money **for him**. [*to* does not work] She needs the rice for the sweets. [*to* does not work] Notice that in the preceding cases, there is a noun (pronoun) or gerund noun after the preposition for. There is no verb. [making a fortune is a participial phrase functioning as a noun]. Making a fortune is not easy. is not grammatically the same as: To **need something ***to do*** something** A university diploma is not needed to earn high profits trading cryptocurrencies. A university diploma is not needed for earning high profits trading cryptocurrencies. However, they **can also** mean **for the purpose of** in those examples. But they do not exhibit the same grammar. And *for* and *to* are not always interchangeable as can be seen in the examples at the beginning of this answer.