This law was a response to the terror attacks of 2017, and was mostly already done when Putin invaded. As a political thing, Sweden and Turkey informally agreed to pretend this was a concession so that Erdogan could look good for his election.
The problem was then that this lie was just a bit too credible, so people started to believe in it.
The problem was then that this lie was just a bit too credible, so people started to believe in it.