You're also right that learning doesn't necessarily require a professor. But, if you're the sort of student that could learn something without the prof, and yet you have the prof right there, I bet that if you thought about it you could think of some relevant questions to ask that would let you learn more (or faster); and I can almost guarantee that if you're that kind of student the prof would be more than delighted to answer.
As I noted above, the problem is not that doing the work isn't enough; it's that if you go in thinking, hey, I just gotta check every box and I'll get an A, you're a lot less likely to actually succeed in getting the boxes checked in the first place.