Why do fresh graduates lack practical coding skills despite strong academic performance?

I remember the semester I scored the excellent in my Data Structure exam.