Harry did not see ghosts of everyone who died in Goblet of Fire. He specifically witnessed:
As an unintentional Horcrux, Harry shared a deep, parasitic connection to Voldemort. This made him unusually sensitive to death and spectral phenomena—especially when Voldemort was near or actively using dark magic. Voldemort's presence amplified ghostly visibility for Harry.
Seeing ghosts is rare among wizards; Harry's ability stemmed directly from his soul fragment link to Voldemort, not a general mediumship gift.