When did this happen? I remember judges at hackathons used to be very forgiving about lackluster UIs as long as the idea was cool and at least functional by the presentation time
The majority of the ones I’ve been in have tended to be run by people who judge based on their notion of how useful the app will be societally, with the tie breaking factor being the UI/architectural design.
Presentation-first judging has been a thing for a long time, and unless there is a organizing party that explicitly makes code reviews a part of the scoring, and the organizers ensure attendance quotas for different personas (engineer vs. product vs. designer) it will always drift that way.