Like any other app not from the play store Google Play allows you to install other app marketplaces.
You just got a warning the first time you install the alternative store.
It's just incredibly hard and not worth it to start an alternative legit store unless you are huge with something that customers really want and that is not available somewhere else. (ie: Epic Games with the Epic Store for Fortnite)