"Oh, you teach high school? You look like you could be in high school yourself. Do the kids listen to you?"
"The kids must like you because you can relate to them, because you're so young."
How about this instead: "Wow, you must have worked hard to earn your degree, land your position, do a good job, and win the respect of your students."