Because it can't be implemented without low level hardware access. But also, it seems like it's a part of GMS, not of the OS itself.
Also, for all intents and purposes, GMS is part of the Android OS, but Google had to branch it off, to keep it closed source.