Many of these small self-owned shop are the first floor of a house or building, and more often than not the owner lives upstairs, so it's less of an issue to keep it open with low frequentation as they're no paying extra rent or suffering hours of transit to get there.
That also tremendously helps with the community aspect and customers putting a face on the shop and staff as they'll meet them in their daily life as well.