Isn't your teacher lied to you ?
Isn't your teacher beated you for no reason ?
Isn't your teacher get angried to you without a proper reason ?
Isn't your teacher used you and then didn't minded you ?
Isn't your teacher give too much punishments to you ?
Etc…
But still why ?
(Am not asking this to criticize anybody or disrespect others. Just a doubt formed in my mind as a student. If am asking anything wrong please correct me)
If your teacher beats you then look into reporting that, if that's legal where you are then try to talk to your parents about the whole scenario and see if they'll support you.
Please know that teachers in many places are not like this.