Sounds like something must have gone seriously off the rails over there.
how would you do it better?
I was lucky enough to have bosses who would come around at 5:30 and say 'Oi, what are you still doing here, go home'
You might think it's a sprint. You're wrong.
I've worked at 5 Bay Area tech jobs, and in all of them, it has been fairly common that some people choose to stay for dinner. Sometimes it's people who start the day later, sometimes it's people who are working a bit extra. I'm having a hard time remembering a time where I felt pressured to stay for dinner, it's just a schedule that some people have. Two places I've worked (including my current place) have offered free dinner for anyone around at dinnertime.
If back before I was married I'd worked at a place that offered free dinner and snacks I'm convinced I would have happily and voluntarily stayed at the office until late basically every night. So as such I'm really glad I never did.
And as a write this, the only other reply to you is basically a confused "but how else would you do it", since apparently the concept of putting in your 8 hours and going home to eat dinner with your family just doesn't compute.
12 hour days are expected at most firms. New hires can look forward to 14 hour days. Compliance sweatshops will expect 16 hour days, though are usually very generous with salary to compensate.