You have a good ear, you are hearing the small errors inherent in "twelve-tone equal temperament"[1] which is a compromise between numerical ideals and practical instrument-making.
Which is to say historically, equal temperament is mostly a result of compositional and performance concerns rather than manufacturing limitations.