They also want a reliable way to differentiate between chatbots and real users, because advertising isn’t very effective on chatbots.
But also, one benefit of ID laws for the government is that it makes court proceedings much faster and cheaper. Sure, they’re tracking everyone online, but a lot of that information is locked behind procedure. By just requiring ID to log in they can sidestep the procedures, because they can just ask corporations nicely for ID information and they’ll eagerly comply.



“Corporations want a way to verify the humanity of users” is a simple answer.
“Governments want a way to easily prosecute users” is also a simple answer.
I don’t see why it can’t be all of these things. There is actually a more complicated answer that I didn’t bring up, which is that smaller websites will have a hard time complying with ID laws, which gives preferential treatment to large websites. That locks out potential competition, hinders smaller projects like lemmy or mastodon, and helps secure the current social media monopolies.
That one might just be a useful side effect, rather than the intentional outcome.