Some people will do jobs that bring money into the town such as engineers, hospital workers, etc. Others provide a service to these people such as restaurants and they make their money off them. People overestimate how much you need to survive in a rural community. It’s extremely cheap compared to big cities which is why rural tends to be heavily associated with low income communities