How did "naik" come to mean "ride"?
"ride" is one of the meanings of "naik". See the dictionary: https://kbbi.kemdikbud.go.id/entri/naik
It is meaning #5.
But "ride" is not listed in the dropdown meanings of "naik" in the sentence.
I think "naik" means whatever form of travel is appropriate to the mode of transport , so to ride a bike, to go by bus, to take a flight on a plane etc. A very economical word !