I would never go to a dentist or a medic that doesn't have a degree ahaha. It's kind of a proof of work, for some extent. Off course you could achieve a good level of competence just studying on online content, but the hard skills are usually developed studying in a structured environment, for example a university.
I agree that some universities and some courses are kind of garbage, by the way