That seems like a misconfig or a broken lid sensor or something. I’ve been using MacBooks with a single external monitor as my only display (MacBook closed) for over a decade and I’ve never had the laptop display stay on when closed with an external display. Maybe time to visit the Genius Bar?