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.
> it's that none of the math classes teach you how to think through and write proofs.
Formal logic is usually introduced in calculus and discrete math courses. Arguably though it could stand on its own especially if it was taught using modern computer proof assistants, which make the "structuring" of even fairly complex proofs very clear.
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.