the reason why so many plugins and templates are insecure is precisely because they have access to that global scope and misuse it
You're criticising 'plugins and templates' that make use of the global scope, while giving the WordPress core a free-ride for not just using global scope, but placing objects there that can be exploited.