I've noticed this with philosophy; I did a CS degree, and was self-directed "interested in philosophy", but found my handful of philosophy-minor classes massively helpful compared to only self-studying. I still mostly read philosophy on my own nowadays, but I often feel that I'm missing some of the more solid grounding that I'd have had if I'd done a full degree in it. Giving myself crash courses on background I'm missing by reading Stanford Encyclopedia of Philosophy entries isn't quite the same. I think it would've helped in my actual area of research as well (some AI problems are closely related to philosophy problems), but there's only so much time in undergrad, at least if you plan to graduate in a reasonable amount of time, and the CS was probably on the whole more relevant than more philosophy would've been.