"Did James used to wake up late on Saturdays?" Why you put "used" instead of "use" in the sentence?

“Did James used to wake up late on Saturdays?”
Why you put “used” instead of “use” in the sentence?