I keep hearing people say these SoCal earthquakes are being caused by the heat or as punishment for how we have been acting. I think they are wrong.

It is actually the San Andreas's fault.