Using 'for' to indicate the cause of something is a literary form and it is rarely used in normal speech. "Can't see the forest for the trees" is a fixed expression you might encounter that uses this form.
In most cases, 'for' is used to mean "on behalf of," (I cleaned up the room for the guests) or specifying the recipient/purpose of an action (I need to borrow a few dollars for lunch. / I called for her.)
"Because of" indicates causality. "A because of B" means B caused A to happen, as in the example " I was late this morning because of the heavy traffic".