Just to buy yourself time.
By default, you’re there still and might stay there still, conceivably for a day or a week or a month or two months.
A friend’s house, if you have any local area friends can be a temporary situation — most homeless end up on a couch somewhere like a friend or other relatives (aunts, uncles, grandparents) but the countdown is ticking from day one you start.
Actually, sadly, wherever you live there is a countdown clock ticking. Rent is due, patience worn thing, that sort of thing.
As a guest of a friend, 3 days is usually max before they expect you to sort yourself out.
Family members may give you a month or two if you’re lucky.
Everywhere you put your head to sleep has “house rules”. What you can tolerate and what they can tolerate of you is different in every case.
Also, everybody here gave good advice here worth looking into.