Apples only (real) reason for forbidding sideloading is because then they could no longer force people to use their payments.
If developers were free to use 3rd party payment solutions, then Apple would probably be a lot more lenient towards side loading apps.
I believe that Apple generally wants to build what's best for their customers, except when money is on the line.
Happy to have 3rd party payment options as long as it prevents sideloading.
A lot of scam apps get through app review. From a security point of view app review is not effective at all.
That's just a story Apple likes to tell to hide the fact that they want the power to block anything they don't like.
OSX is not locked and there are not millions of daily victims, so maybe it is not impossible to have low malware problems and freedom.