In both sentences, because is the signal word.
It stays with the past of the sentence that tells the cause, even if the cause comes after the effect in the sentence.
In order to understand a cause-effect pattern, aways ask, "What happened first?" Then you will know the cause.