People at the recruiting agency usually get paid a commission as a percentage of the first year of the hiree’s salary (not taken from your paycheck, but just in general). Which means, it is in their interest to get you as high of a comp as possible. Which also means that I dont have to bs around with the recruiter about my salary expectations or anything like that. I give them the upper range of what i want, they tell me either “sounds good” or “they are easily willing to pay more, so why not try $X instead” or “they cannot pay that much, but there is this other company that we work with that can offer you as much.”
And if you work with one recruiter consistently, it gets even easier, because now that the recruiter knows my total comp expectations, she pre-filters opportunities for me and only contacts me if there is a position she is aware of that pays at least as much as I want or more.
Of course there are downsides too, for example, the limited choice of companies that the recruiting agency is working with at any given time, so i still have to find some opportunities and interview with those companies on my own. But as a supplementary option, working with a good recruiting agency has been quite nice for me.
P.S. The type of a recruiting agency i am talking about is the one that is focused on a specific sector (in my case, fintech/quant), so it might be a completely different story for a “generic software dev” recruiting agency.