The idea of people not moving for new opportunity is a very new phenomenon. For nearly all of human history, people would migrate to where opportunity was, and for an agrarian society, that opportunity was usually where land was. The American government wanted to settle the areas that it had expanded into, purchased, won, or declared by fiat that they owned. So it made land ownership incredibly cheap, basically free. Mind you, most people who were migrating west were immigrants or first generation Americans. Their ancestors had fled Europe only one generation (or the same generation) prior, taking a ship across the Atlantic which cost most of their life savings to afford, so the idea of moving west by rail or by caravan for a fraction of the cost of transatlantic journey where you could still keep most of your important possessions was a pittance compared to the generation prior.
Most of the people who moved West were farmers or from farming communities, both from Europe or from the United States, and for a poor family who had tilled hard scrabble soil across continental or northern Europe for generations, the American plains were literally a land of plenty. With the lucrative offer by to own acres and acres of property for free, as long as you planted crops and maintained the land (something that they had done for hundreds of years in much worse conditions), this was a godsend opportunity. Communities set up in rural areas were generally immigrant communities: Entire communities in Pennsylvania or the Plains that spoke Dutch, where it'd be relatively rare to hear anybody speak English. So, if you were a poor Germanic farmer who was being treated like shit in Philadelphia or New York City by the dominant landed American gentry, and hostile other immigrant groups, it only made sense to take your family west, to a community where they spoke the same language, had the same religion, and shared a lot of the same culture.
By geographic/geologic coincidence, the American plains happen to be some of the most fertile soil on earth for growing crops that many European immigrants knew very well how to grow as they had been farming those crops or similar crops for generations, on much smaller plots, typically in much worse conditions. So the opportunity to get free land from the American government, which incidentally happened to be incredible fertile land, near a community of people who were very similar to the community that you emigrated from in Europe, was like a heaven sent.
The telephone and electricity would not have been remotely useful for anybody but the richest socialites for most of the 19th century. Most houses/dwellings wouldn't have been wired either for most of the century. Also, there was no one to call on the phone, and you couldn't really call anyone anyway. Even up into the mid 20th century, most lines were "party lines" that were shared between entire city blocks, entire zip codes. Party lines are like this generation's dial-up modems, something that 2 generations ago were the most common thing to anybody, and now today the youngest generation would think it's the weirdest thing ever... You have to dial a phone number to get access to your Facebook Chats...??? Likewise, you have to ring a secret code and anybody within a city block can pick it up and listen to the conversation you might be having with someone else... 50 households share the same phone line...?? And, mind you, this was the 20th century let alone the 19th. And even if you happened to have a phone line, who would you call? Nobody else had a phone. And, for electricity, there were no products to plug in. Making this dichotomy between food/land/opportunity and electricity would be tantamount to asking why someone would take a high paying job in a city, when you could watch an 8K TV in the suburbs. It's ... like ... two things that aren't comparable ... They're not on the same wavelength of comparison.