Worse is better. It's an easy place to do collaborative editing. For google specifically, I think they leverage some google docs automation for capturing artifacts for hiring committee in their interview workflow.
No reasonable interviewer expects you to write perfect code on a whiteboard or in a non-IDE editor. I'm sure there are plenty of unreasonable interviewers, which is an indicator that you don't want to work for them.