"Homeless" is not the same as "living on the street". People living in hotels, temporary trailers (in some places even tiny homes count), living with a friend temporarily, etc are all
homeless. Plenty of Americans are
much closer than this than you might think working in tech. 50-60% of Americans currently live 'paycheck-to-paycheck' which means the second work stops they're on a timer for missing bills to start coming in.
I've had the luxury, working in tech, to have lost a job and had the opportunity to take a few months off before searching. Even this was incredibly stressful in practice, but I never had to worry about losing my place of living.