That Macs are still somewhat open is just a happy historical accident. Enjoy it while it lasts :/
Apple has publicly said that macOS is unacceptably insecure because users have the option of running unapproved software (https://www.theverge.com/2021/5/19/22444353/mac-malware-not-...). It's not unreasonable to think that they'd be interested in fixing that "problem".
Just give me a simple checkbox in the system settings that this is a "developer machine and I know what I'm doing" which disables all that stuff and it would be fine.
They still haven't, haven't even made any big moves that way, but maybe eventually that crowd will be right in the same way that if you predict a recession every year, you'll eventually be right.