Do you suggest they shouldn't warn someone when they download an APK? It's also browser specific and I imagine all major browser give the same kind of warning because , you know, downloading an APK directly from a website might be harmful.
And besides, even for side loaded apps they have a database of "bad" apps that get deleted by Google called "play protect"
[1] https://developer.android.com/reference/android/Manifest.per...
This model exists on desktops and laptops, where there is signing or browser scanning, just not on mobile.
You can argue that the testing Google does is bad or minimal, but it seems like the ideal solution would then be "improve the testing". I'd also prefer to see such tests moved on-device so they could apply to APKs from any source, but I don't know how technically feasible that'd be; depends on how they're doing the testing, I guess.
Yes why would we believe Google on the APK scanning? There's zero transparency on this subject, zero code shared and the store is visibly full of scams anyways.
Edit: Sorry, didn't read to the end of your comment. Yeah doing it on-device would be good but I'd guess there's some stuff they want to keep secret.