In some older, more archaic writing, you'll often find something like, "he fell into the sea, for the storm was wild and fierce and he was unable to keep his balance." "For" in this case would mean "because." Maybe you encountered a similar usage? Either way, like others have already mentioned, "because of" would be the better option between the two examples you gave :)