In my experience, if there's one thing missing in math pedagogy, it's that none of the math classes teach you how to think through and write proofs. I was personally fortunate that my high school math teachers made an effort, but that's not that common.
It'd be like if the first time you encountered the concept of an "essay" was when you took a history course in college. You'd have a rough time just understanding how to do the homework.