That’s pretty unfair. Most of the work I do can be considered “marketing” since it’s corporate sites and portfolios. Businesses need to have an online presence of some sort and someone has to create one for them. Not everything is SEO spam.
OP said “Websites were strictly for marketing/leadgen” which is just marketing sites. But pretty much all business sites are marketing. If you don’t have an e-commerce and you’re not a saas of some sort, you have a marketing site. It’s there for visibility and to provide information.