In android's case, it's a lot simpler. Epic wants to partner with manufacturers who can preinstall epic's store, which google currently forbids.
Both companies contribute to the open commons with open source software and sponsorships.
You could probably make a reasonable argument that Play Services are specifically designed to undermine the spirit of open source, but theoretically you could build an alternative, and use AOSP however you wish.