They don't want the warnings from Android yet don't want to put the work/money in to build their own OS, even using AOSP (Android Open Source).
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.