I'm not saying it's the norm to post salary, and I'm not defending companies that don't. But some companies do, and some job seekers won't apply unless they do.
In the September HN who's hiring thread, two of the first four posts include salary info. Remote, and NYC.