You absolutely can easily get a mortgage you can’t afford, or can easily get yourself into a foreseeable scenario where a previously affordable mortgage is now unaffordable.
The major requirement only came about in the OBBB in like 2025. I doubt that applied to you, but still, I’ll rephrase to “people are stupid and overextend on any degree that doesn’t have adequate financial return”.