Dismounting an entity has a random chance at toggling your flight off
When you're flying in creative, having your flight toggled on and mounting/dismounting an entity can sometimes disable it as it shouldn't happen and the player should remain in their original state just as before they mounted a ridable entity.