There would be no place where the community can pray collectively. In Islam, congregational prayer or prayer in congregation (jemaah) is considered to have more social and spiritual benefit than praying by oneself. Additionally, the mosque is a meeting place for the community, where they are informed of important religious events and duties. They are also centres of learning and study of the Quran, Sunnah, Hadith, Sirah and more.
All these shows that it is very important for a Muslim community to have a mosque. Not having a mosque in the community might take away the ability of the community to pray in congregation, to be able to conduct proper Islamic lessons.
While it is possible to pray five times a day and carry out the rest of the pillars of Islam even if there is no mosque nearby, but that is not ideal for a Muslim community. A Muslim should always desire to worship alongside other Muslims, their brothers and sisters in Islam - this unity and sense of brotherhood further strengthens the faith of Muslims and keeps them connected.