Can a teacher ask a student to leave the classroom for no valid reason?

My teacher asked me to leave the classroom because I almost fell asleep, I understand that as he may have been disrespected but I was tired, and wasn’t feeling all well, the next day as soon as he comes in to the classroom he asks to to once again leave the classroom, yet I showed no signs of tiredness, I was not disrupting his classroom in any form, he said I was not ready to listen in his class, to add once a student literally slept right in front of him, yet he asked the other students to wake her up, and she woke up he asked if she was feeling well, btw I’m one of the students that is always participating in his class, what action can I take?