Outdoor disconnects have been code required in many jurisdictions for some time. I believe it finally became a national code in 2020, NEC 230.235, now is 225.41 in the NEC 2023.
I do not know when or where it originated, but as
@ultrarunner wrote, common in California for decades.
The logic is that for safety reasons, e.g. fire, the power can be disconnected at a single point outside the home, and it must be labelled "Emergency Disconnect".
To save costs, builders tend to use the main service panel disconnect as the emergency disconnect, rather than an $800 switch. For those doing renovations getting tagged with the electrical code non-compliance, the extra switch is likely to be the lowest cost solution, I suspect.
All the best,
Peter