A yes, why didn't I think of that! Let me just completely ignore the broken housing market, the 15+ year waiting list for social housing and scrape together... lets checks... €400k for a small appartement with a 45 minute commute to work.
Do you have any clue how privileged you sound here? This is peak "have you tried not being poor" attitude.
Small apartments are not 400k, that’s average house price for family houses.
Apartments are between 180-250k.
While I don't know about European countries, given this is an article about America it's worth pointing out that you can, in fact, vote in the US while homeless[0], using a friend/family's home, shelter, or religious center as your address.
[0] https://vote.gov/guide-to-voting/unhoused