Was Pali the first language spoken by people?

This is an example of the sort of mythic elements that DN 27 contains. A lot of the sutta provides an origin story for the various features of society at the time the discourse was given. Bhante Sujato offers some commentary in an essay by Piya Tan :

This is one of the classic functions of myth: to explain and authorize present day customs by connecting them to archetypal events that happened ‘once upon a time’.