every song is out of tune
the 3:2 ratio (perfect fifth) is one of the most stable intervals, due to the fact that it is the loudest overtone (overtones).
so they tried building a scale out of that, you get almost perfectly 12 notes.
but it’s not exact. so basically they had to compromise and now every note is equally slightly out of tune so it all adds up correctly. meaning there is slight pitch dissonance in all the intervals. however, it’s not too noticable, because it’s spread out rather evenly, and we are so used to songs sounding this way.
this is the major scale. and every key on the piano, etc.