There always seems to be one weird teacher in every school, but that usually just makes things interesting. You just have to know what to listen to and what to ignore. (in this case ignore).
But please don't rope in all teachers with this moron. Being a teacher myself, I hate seeing others saying this sort of inappropriate stuff in class, it gives us all a bad name.