Labor organizations lobby for qualifications because it helps people who have them of course.
Additional requirements lower the supply of labor, and therefore increase wages for people who have those qualifications.
An example of a similar union where this is done is in the screen actors guild. They don't just let anyone in. Instead, they require you to do a certain amount of work before you are allowed to join.
The catch-22 of course, is that the union screen actors guild contracts prevent all but a minimal amount of non-union jobs on a certain production, therefore putting up barriers to entry for new people wanting to join the industry.
You need to be in the actors guild to be able to work in the industry, and you can't get into the actors guild unless you've already worked in it! Catch 22.
It all makes perfect sense for the goal of a union to be to decrease the labor supply, thereby helping the existing members.
I'm sure other people can come up with similar examples.
Because unions have often in the past imposed various credentialling requirements, followed by quotas on the credentials given, as a way to push up wages.
For example the UK health system is wrecked by this. Medical unions insist on very low numbers of school places, too low to meet demand, so the government is forced to rely on immigration to fill the gaps. The unions love this because they're all overtly left wing organizations and want mass migration, also they see immigrants as free Labour voters. But being unable to actually train sufficient doctors is a bad place for the country to be in.
I don't have a CS degree either, and I'm not sure why you think labor unions would impose them? Degree requirements come from the company, not from the employees.