I think a lot of people start CS without having coded before, find it more difficult than expected, look around and see half the class have been coding a few years and are way ahead and decide it’s not for them
Pretty much every other class just has you follow rote steps until you get to upper classman years or even graduate school. Some form of recognize the problem type and then implement the procedure of explicitly taught steps for that problem.
In computer science introductory classes you get introduced to programming languages as tools, but you have to figure out the procedures largely on your own.
I think this is the first time a lot of students have had to actually think for themselves when solving a problem, and I suspect the transition is too much for a lot of them and they drop out.
If CS rates are higher then I’d expect something unique to CS, if they’re not then CS isn’t really unique among more difficult degrees anyway.
If the person is comparing engineering degrees/dropout percentage to liberal arts degrees, well - there’s a reason the liberal arts stereotype exists. Those classes are way easier.
The level of math in most engineering fields stays within the bounds of applying techniques from calculus, and rarely involves proving much if anything. Most engineering degrees don't require any math courses beyond calculus and statistics. CS is one of a small number of degree programs where undergrads are likely to be exposed to a significant amount of proof theory, along with topics like algebra and graphs.
For the record, I was never super interested in the really abstract theory and math, and I was just okay at it, but I could do it well enough and was motivated to push through by my love of SWE. I don't think I'm alone in that.
Math is a large component of the degree. I remember that most CS students in my school would minor in math since it only took 1 or 2 more classes to complete the minor. Any way you look at it, it's a lot of math. Many people aren't ready for it.
I think economics is one of those majors that has a large dropout rate too. Again, the amount of math is a huge reason why people drop out.