The scrum masters feel 100% like a scam to me. The "work" they do is a complete joke - they basically have a couple of rigid scripted behaviours that could be performed by a bot or an intern - ask people about tickets' statuses, ask if a ticket cannot be split into smaller ones, ask people to do estimates, ask if X can help Y on task Z etc (all these questions are so basic that in general any experienced dev has already asked them themselves in their heads before coming to a standup). Also, from what I'm seeing, they "work" maybe for 1-2 hours a day. The only redeeming factor is that they usually make way less than a senior dev (at least here in Europe).
I suspect Scrum Masters will be completely purged out of the industry in the next 10-20 years, as the execs realise they provide negative value (sadly, they'll probably be replaced by some other fad role, and the same people who are scrum masters now will just retrain into that fad).