Why are there stars in the universe?

I doubt that anybody knows why there are stars in the universe, but I'd say that it was to keep all the planets that support life warm.