Whenever you try to climb a ladder or vines when you have a parrot on you shoulder it'll fall off. Since you are moving pretty slowly upwards you would expect it to stay on your shoulder.
Parrots on shoulders disappear when flying up in creative or spectator mode
Parrots Dismount From Shoulder Whenever You Jump
Parrots disappear when climbing ladders/vines