I hated writing essays in school, because the assignment was always "reproduce a work of writing that adheres to the arbitrary standards of the institution for grading purposes". Great writing can't be graded, as its value is entirely subjective.
As an example, here's an assignment that I might have completed under duress, vs. one that I'd complete voluntarily for fun:
"Explain how the theme of Chaos is expressed in Slaughterhouse Five. Use at least five supporting examples from the text and cite your references MLA style. Four pages minimum."
"Convince your best friend that Slaughterhouse Five is a terrible novel. Cite the text any way you please, ideally by comparing it to a book you think is actually good."
Whatever I produced for the first prompt can be graded by ticking off boxes and looking at my grammar; whatever I produced for the second prompt would need a thorough investigation of my own writing style and a framework of grading that takes into account my own voice as an author.
(To be clear--I don't think that giving my prompt in a modern classroom would immediately inspire students. They are far too burdened by the entire system for a single change to fix their experience. I am merely discussing the difference between "pointless essays" and "essays that authors care about".)