Are you changing gears with the bike moving?
If not that is the reason, the bike needs to be moving for proper shift to happen.
I flowing along a highway in 6th, I have to reduce speed to get out, not down the steps, until you stop the bike, yet it costs. it does not matter if I'm in 5th or 4th