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.
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 !
Ride a bike = Take a bike