There are many theories and nobody knows the truth yet. A theory I like is the following:
"Gravity in space-time is like an elastic band, and a star is like a weight hung from the elastic band - The greater the weight that is hung the more stretched the elastic band. When the weight is...