The other piece of the puzzle is:
https://en.wikipedia.org/wiki/Swedish_Enforcement_Authority
Basically the government runs debt collection in Sweden. They have the ability to withdraw money from your bank account.
All of this is enabled by every resident having a (public) personal identity number.