But you have to rewrite it for every major hardware vendor, or else you won't get the performance you want.
GL should always work for the simple case, but instead you need to rewrite to avoid bugs in its many layers. And once you have Vulkan/Metal, industry-specific wrappers are better than the impossible to debug procedural GL junk.