hm, probably just by hearing a lot of notes on a well tuned piano, randomly play a note and try to guess it, or just, memorizing notes? the quality of the note?
i really dont know, i think i just listened to piano a lot since i was little, so by the time i took theory (and learned what perfect pitch was) i could do it
wow im curious too