They aren't, you use your allocated vacation time but are able to take the 4 weeks without question or needing to schedule around other coworkers (it's auto-approved).
Usually around June/July there's very few people working at most places, some restaurants are closed, etc. At one employer it'd be around 10-15% of us around during summer.
I actually prefer to work during this time, much slower pace, time to get into projects that couldn't be planned for. At max I like taking a week off and saving the rest of my vacation days for end of September when the weather starts to get cold.
I don't really understand why some prefer to travel outside of Sweden in June/July/August since those are the best months to be around (and it's high tourism season anywhere else in Europe).