You don't have to eat in the classroom.
Explanation: Generally, eating in a classroom is not allowed or necessary, making 'don't have to' the appropriate choice to express the absence of obligation.