Very true, and young people too! I think these shops could reduce loneliness as customers may talk to each other. There's more chance of interaction with a shop than no shop. The concern is where technology is used in place of staffed-shops, but perhaps you would have to make small talk with the security guard instead.
Perhaps in cities, where there is more footfall, it might save money to employ one. But you're certainly right, in these rural Swedish shops, there doesn't seem to be.