Why did humans invent sports and why do so many people love watching and playing competitive sports games?

I'm not asking why certain individuals are attracted to sports. Obviously people find it exciting, thrilling, entertaining etc. My question is why do people find it to be so exhilarating?? Why is it exciting? Why is it entertaining? Why do athletes enjoy sports so much? Is it simply the sublimation of our evolutionary drives in a way that is accepted by society? What are the psychological, historical, scientific, etc. reasons for us creating and participating in competitive sports?

Also, how do you think we can use the popularity of sports to make the world a better place?