I conclude that the musical notes and rhythms were first acquired by the male or female progenitors of mankind for the sake of charming the opposite sex.
Charles Darwin (2015). “Delphi Complete Works of Charles Darwin (Illustrated)”, p.7535, Delphi Classics