I had a "non traditional" education.
I was a great High School student, but once I was in college I struggled, mostly due to non educational issues (poor reading comprehension, depression, general issues I think would be termed ADHD) and I dropped out. I managed to work my way into the tech industry with luck and just making stuff work. The fact that I didn't and wasn't going to know what to do I chalked up to my own reading comprehension and other issues. So I just accepted it and kept "moving forward".
Meanwhile a lot of friend continued on through college being very successful and accomplishing a lot and then... really struggling when the working world wasn't fair, and perhaps most importantly didn't provide a prescribed path to high fives, good grades and knowing they were doing it right and would get good outcomes.
So I'm often working with CS grads and I see the same thing from some of them, folks struggling when they're not told what to do, how, and confidant in their own actions.
Education seems to provide a lot of specific environments that just don't exist outside that and it tends to be a bump in the road for a lot of people.