Chances are it used the move Dragon Tail, which has negative priority, and as such will ignore speed boosts. Or it could've used Whirlwind, which also has negative priority.