Unfortunately some random AI at Microsoft thought this was a Good Idea and no one thought to object.
Why in the name of Jupiter would I want to autocorrect in Swedish all the time just because I have a Swedish keyboard‽
Just turn off autocorrect or deal with having to switch the keyboard language to something that doesn't match the actual key layout just to get the correct correction language.
Unfortunately no one working on Microsoft will ever see this and if we are lucky some random AI that has no actual idea about what we are talking about or how Windows works will say something random to eat up some compute on a server somewhere.
It is too late, look at penguins or something else.