The point of essays is not to have essays written. The teacher already knows. The point is to practice putting together a coherent thought. The process, not the product, is a the goal.
Eventually we'll come up with a way to demonstrate that along with, rather than despite, AI. But for the moment we have machines that can do the assignment much better than students can, and the students won't get any better if they let the machine do all of the work.