Both are serving the same purpose in stating a reason. But the way of delivery are in different forms and thus suggest different structures.
"This is because" comes after an effect and followed by a reason
example:
I can speak Spanish, this is because I studied it.
You are not hungry, this is because you ate.
"This is why" comes after a reason and followed by an effect.
example:
I studied Spanish, this is why I can speak it.
You ate, this is why you are not hungry.
I am sorry to correct the previous comment but they can both be used for past and present tenses.
Example:
I was tired last night, this was because I was jogging for 2 hours. (in present)
I will jog for 2 hours tonight that is why I will be tired. (in past)
Let me try it in Spanish:
“This is because” = Esto es porque
Ej: La mala coneccion de internet esto es porque no te conectas
“This is why” = Esto es por culpa de
Ej: Yo no te conectaste por culpa de la mala coneccion de internet.
*If I confused you with my Spanish, I advise you to just stick to my English explanation. =)