For every person getting ransomed by a sideloaded app there are ten people getting ransomed by apps they installed from the Play Store.
And two wrongs don't make a right
If we ban sideloaded apps under this reasoning, we have to ban the Play Store as well, ten times more urgently.