I believe some courses could be taken online. For example, here is an amazing course on Algorithms and Data Structures by Robert Sedgewick https://www.coursera.org/learn/algorithms-part1? at Coursera. It works really well for the online format. So, not all online classes suck.
My major was Physics and I was teaching all five years of the Graduate school. I do not have a slightest clue how is it possible to teach Physics remotely at the acceptable quality.