On the front, working with a publisher can help with funding. A publisher will often times front a fair amount of development costs, which depending on funding sources will often time make up a significant portion of the revenue needed for development. When people see exclusivity deals, that happens because the developer receives advanced funding for development costs, usually a significantly larger amount than one would receive from a publisher that has no platform associated with it.
For smaller studios, these teams may not have any marketing expertise. While an independent marketing team may be able to help out with this, the publisher managing this relationship, especially with teams either internal or external that they have experience with, allows the studio to focus on their development efforts.
That's not to say this is always sunshine and rainbows. The stories of publisher imposed deadlines, restrictions, etc. are true, usually without a lot of the inside baseball color of the why of these deadlines are required. That said, when Other People's Money comes into play, things always change. The cost of delaying a release is not small, even more so when there are physical products being made and fulfillment to be managed. That's not me being an apologist, just trying to add a bit more color to the social media talking points.
To the point I think you're trying to make though, with the amount of self publishing tools available, it's definitely not the necessity that it used to be to be. However, the dynamics of whether one can do something, vs. whether they're the right ones to do so something are always nuanced, especially when it comes down to the calculus of whether the benefits and the trade offs line up.
They provide a huge advertising presence for one - it's hard not to stand up and take notice when a big company like Sony plasters their front pages with ads about a game.
The other benefit is money. Smaller studios often don't have the up-front capital to outright create a game on their own - a publisher can be that stepping stone.