No definitive answer exists. Earliest known songs date to ~3000 BC in Mesopotamia and Egypt (religious/ritual). The Hurrian Songs (~1400 BC, Ugarit, Syria) are early notated music with lyre/flute. Music evolved through antiquity, Middle Ages, Renaissance, Baroque, Classical, Romantic, and 20th‑century genres (jazz, blues, rock). Today's vast diversity stems from this long history.
Song is a living tradition—each generation adds its voice.