It's known as The Doctrine of the Affections.
The Doctrine of the Affections conveys that music has the capability to arouse a certain type of emotion among the people who heard it, which happened due to the combination of tempo, melody, and the lyrics that created by the artists.