As a hiring manager at GitLab, I'll tell you that these questions are surprisingly effective in filtering candidates. I'm sorry it feels painful to you, however, it's for good reason.
Most of us laugh at a question like that on an application and move on. It's not worth the effort. You have no idea what candidates you never even see because of those ridiculous questions on an applications.
But more importantly for the faceless hiring entity itself, because it is very short sighted. It leaves a bad impression at the very least to some people. And more importantly, you are most probably filtering out a lot of people who want to avoid useless work (thus are more likely to optimize processes) and are too honest to simply copy and paste an answer off the internet (thus would likely be honest in their interactions as coworkers as well).