Not really related. The Stockholm housing shortage is - depending on who you ask - due to older rental properties being converted into housing cooperatives, rent controls, and a lack of investments, incentives and interest from the state and city authorities for construction of new rentals.
The hotel shortage is most likely a residual effect of the pandemic when many hotels went bankrupt. May is usually a month with many big events happening at the same time, which also contributed. Most commentators seems to agree that Beyoncé is innocent since the rise in inflation in the tourism sector was the same in other regions of Sweden. But it's a great headline.