Legacy software support is the reason for Windows, and will be the death of it.
>After all these years you would of thought Microsoft would know how to program their OS safely and securely.
They know how, but the answer is to not allow code to run that isn't well sourced, signed and validated. That means trusted repositories *required*, not included as an option. And that is a paradox because Windows has always been software from random strangers installed by any means necessary.