They're back now. Hard corners were kind of a big thing in the early 2010s, think Android Holo, Windows 8, etc.
I think Apple popularized the return of rounded corners in software with the iPhone X launch, when rounding the corners of smartphone screens became popular.
macOS rounded the window corners more, I think with Big Sur. And Microsoft followed suit in Windows 11.