In 1954, decades before social media existed.
Psychologist Leon Festinger proposed social comparison theory in 1954, long before the first feed. The instinct to measure ourselves against others is old human wiring; phones did not create it, they just gave it an endless supply of people to compare with.