The App Store (Apple or Google) is a software distribution platform run by the owner of the platform. The platform has rules to cover costs and generate profit. Participation is entirely voluntary.
Epic Games has violated the TOS of the platform, and for this both Google and Apple has removed their app(s) from their platforms. Again, participation is entirely voluntary, but if you participate you're expected to follow the rules of the platform.
It's really not down to Apple keeping a walled garden, or Apple vs. Users, or Google spying on you.. again, Participation is entirely voluntary, that also goes for users.