It doesn't help that school has always been "Write an essay on the subject, but it must contain the same opinions as the textbook and reach the same conclusions as the textbook".
There are few human phenomena which have been more contrary to free thinking than schooling. You reap what you saw.
That doesn’t match my school experience. In fact, I had many cases where we were assigned to write persuasive or argumentative essays arguing for whichever position we wanted.
Of course, if your argument isn’t supported by the evidence (scientific, textual, or otherwise), then you won’t do well. But this is not a general description of school essays (although I have many other criticisms of school essays).