1. https://sv.wikipedia.org/wiki/Lagen_om_anst%C3%A4llningsskyd...
There are of course ways you can part with your employer that falls outside this law - you can be asked to waive your rights, in some cases against compensation. Your employer can also choose to break the law and bank on you not knowing your rights/not feeling equipped to fight for your rights.
The law covers all employers and employees regardless of union membership, but agreements between unions and employer organizations can limit the scope.
As you say, in practice companies will often sweeten the deal with a big severance package if they want to make changes which the law doesn't allow. I.e. get the right people to voluntarily resign instead of having the wrong people being laid off.
Are you sure they don't fall under Unionen or some other TCO org?
I'm not exactly an expert, but if you're going to lay people off you have to do it based on how long someone has been at the company. Before you can lay someone off for 'lack of work', you're also required to show that this person cannot fill another position at the company. The rules are definitely in favor of the worker in Sweden.
[1] https://www.government.se/government-policy/labour-law-and-w...