No one has to use third party app stores.
Android allows third party app stores and it is not a significant cause of problems. I am sure there must be some bad app stores out there, but the well known ones like F-Droid are probably better curated than Google's own.
Linux has always allowed third party repositories. Again, rarely a source of problems - again, there must be some bad things out there but the percentage of users affected is tiny.