Maybe the professor was training you and didn't care about the value of your undergraduate study, which was almost certainly not worth the professor's time otherwise.
I was funded through a DARPA grant. It was definitely not a training exercise.
He did extra work, but it was effectively practice.