How did Latios run away even though you were using an Arena Trap Trapinch in Pokemon Ruby?

Latios is still capable of running away even while a Trapinch with its Arena Trap is in the battle because Latios' ability is Levitate which allows it to avoid the effects of Arena Trap since Levitate Pokémon and Flying-type Pokémon cannot be blocked from escaping via the Arena Trap ability.