@leopardqecko123 obviously some early aural experiences wired your brain in a musical direction. The fact that you can’t explain this tells me that it did not come from deliberate training. At that early period in infancy when brains are disassembling themselves like mad, leaving only the connections you’ll need for survival, your listening experiences wired your brain for music. Good for you.
What sounds wrong to you can be for entirely different reasons. If someone plays a note, say on the violin, that is out of tune, a trained musician can hear this. The best musicians can hear pitch variations of as little of 5 cents. The public will normally tolerate variations or 20 cents or more before anything bothers them. We’ve all heard the sound of an out of tune piano or guitar. Even if the performer plays all the right notes, the performance will be flawed.
Hearing a wrong note is something else. If someone is playing a passage in the key of Bb and plays an E natural by mistake—most everyone will notice. But some wrong notes are much harder to hear. A master conductor can listen to a performance of a Beethoven Symphony, and in measure 154, if the second clarinet plays an F instead of an A, he will hear it. That is the kind of hearing that only years and years of study, in addition to “natural ability,” can produce.
Having said that, the real gift for music goes beyond both of these abilities. I have known famous singers who had a tin ear. Couldn’t count, couldn’t find the key unless someone played their starting note, and had no clue what the musicians behind them were playing. But their gift was hearing phrasing and interpretation that brought the music to life.
Music involves a complicated skill set!
One last comment: no such thing as perfect pitch. No musician has perfect anything; we all work to expand and grow, and even the masters had their limitations. Hearing pitches is divided into two abilities—absolute pitch and relative pitch. Wiki has informative articles on each.