What led to the creation of games in antiquity?
Most of these games (running, jumping, chariot racing, fencing, javelin throwing etc.) were based on skills useful in war.

In fact, many considered these games a "civilized" form of war that allowed for the release of hostilities, without having the real thing.