It is capitalism. The capital necessary to purchase the store, maintain cash flow, and make periodic maintenance and upgrades will come from the ownership. Profit, an important part of capitalism, may be generated by the business to the benefit of the shareholders. In this case, that profit may be cash, discounts, additional goods or services, reinvestment into the business or whatever the town owners/shareholders or their designees decide.
More neighborhood co-op businesses should be formed!