This is one if those pesky differences between “computer science” as it’s taught in college, and actual software engineering.
I believe that bigger parts of our education should revolve around reading and analyzing professionally written code as opposed to solving completely artificial problems.