Streaming services have an enormous amount of fixed costs. It might cost them several billion dollars/year to operate the necessary infrastructure even with zero customers, but the marginal cost to serve a customer might be on the order of $2/month on that $10/month subscription.
It's why streaming and digital storefronts are such a sink/swim industry. Either a company gets over user number+sales threshold to override their fixed costs, upon which they become profitable and all further growth makes them exceedingly profitable. Or the company fails to do so or barely does so, and makes somewhere between giant losses to minimal profits.
From a quick search, Spotify's user count should have grown somewhere in the neighborhood of ten times over since 2015.
This is not a cost increase that is mandated or justified by inflation. It never is. It's a cost increase from a very, very, very simple fact: companies want profit, and Spotify's leadership has concluded that they will gain more profit by increasing prices than they will by not doing so.