Maybe you would have. Maybe you wouldn't have. But they have to design these things for the 90% case. People using things that are far outside what's being taught—in the age of AI—are maybe more likely to be cheating than everyone going above and beyond.
Students are human. Many have been taught to focus on one end goal: a grade. They see a mythical program that knows 6000x more than is taught in this 200 level course; of course they want to use it!
When I took my Freshman year undergrad programming course decades ago, I had already been programming in that language for at least three years. It would have been quite painful to have to deliberately not do things I already know how to do because "I didn't learn it yet."
This was definitely a problem in classes before AI. I had a number of infuriating teachers who insisted on failing me for doing X, because "you're going too fast and we haven't gotten to X technique yet."