Poetry is produced in labor, and formal labor distinguishes people from animals, so poetry is the first literary style to emerge.
It takes a lot of books to explain this problem clearly, which can't be explained in one sentence or two. You can look at the history of China literature.