The true origins of the word “okay / OK” are not known with any certainty and have been the subject of much discussion over the years.

(Here are a few of the proposed origins:-

So, you can make your own mind up.  OK?)