The Play Store has all kind of automated and manual processes to detect malware and vulnerabilities. It's why I don't enable side-loading on my phone.
The Play Store is notorious for allowing absolute garbage apps in, regardless of the "risks" of sideloading.