Exactly, “write an essay under time pressure” used to just be called… an exam.
It’s normal and was done for centuries (and still done in many countries) for a reason, it works and it’s equally hard for everyone so it’s not unfair.
(3 hours straight is brutal though)