You couldn’t actually catch Onix in Ruby/Sapphire. I guess Martin must have traded them over from FireRed/LeafGreen.