As far back as ancient Rome, vendors still used advertising and marketing. This included word-of-mouth advertisements and billboards (such as in Pompeii before the volcanic eruption). [0]
In the 1900s, newspaper advertising was a major source of advertising. Now that fewer people read print newspapers, advertising has shifted to internet ads and email newsletter ads.
Technology evolves, and marketing evolves to keep up. Even non-profits have significant marketing investments today. I encourage you to actually try to run an organization, for-profit or non-profit, and try to sustainably achieve the mission while rigidly adhering to the ideal that companies shouldn’t use marketing.