Did you just chuck out a red herring?
But let’s humor you for a sec.
The current idea for how it evolved is that it is thought to have come about from two functionally independent subunits which became associated and mutated to gain a new function.
There is another thread where a paper by Thornton et al demonstrates that the mutations causing association of proteins is favorable from a natural selection point of view, making them more mutable without loss of function, and able to have synergistic beneficial mutations.
The two subunits thought to have associated and gained new functionality together was the combination of V-ATPase with a DNA helicase.
It is supposed that glycolysis first produced ATP, then oxidative phosphorylation and ATP synthase evolved afterwards to make use of waste products of glycolysis to increase efficiency.
That all said and done, I am not ashamed to admit that whether or not abiogenesis is true, if it did occur, we may not know or ever know how it happened.
Abiogenesis is not a prerequisite for evolution to be true.