Everywhere in the world people suddenly wake up to expired passport and wants to travel. At least in the US if you really need it with an emergency you can get an appointment by driving FAR away to an in person service center to renew if you can book an appointment within 14 days of travel. I couldn't get it same day even when I call, I got an appointment 3 days before I leave and I still couldn't get my passport within the same day (so I have to come back the next day).
Mailing in a passport renewal is great, but for kids you HAVE TO apply a new one in person which is also impossible these days in a post office.
There is the online renewal now, but it's kind of complicated if there's eligibility (where an adult passport and/or passport card have to either be expired less than 5 years or will expire within a year). Availability of the online renewal platform is off and on when they reach limits. This says it's currently paused.
Renew my Passport Online
This page includes information about the limited release of renewing a U.S. passport online.
travel.state.gov
And "far" is relative. I would think that someone living in San Francisco or near San Francisco wouldn't think it's that far.
Also - there are those private passport expediter services. I don't know how hard it is. When my wife was looking to get a passport quickly, I was chatting with someone at work who dealt with employee travel and she said she could refer me to the company's expediter service. Many claim they can get a passport same day without an appointment. I don't know how they get special access to the Passport Agencies unless they pay some special fee. The coworker was telling me that the service was typically in the hundreds of dollars.