you cannot use for in these cases.
when you state the purpose or why you do something you use the infiinitive
It`s sometimes called --- the infinitive of pupose
so---- I do it to get money
I do it to annoy him
I went to the shop to buy some bread
For is used ---- to explain the use of something
eg a kettle is for boiling water