Switching tasks forces a young child to stop one thing
The part of the brain that manages this brake-and-accelerate move, the prefrontal cortex, is still immature in early childhood. Ending a fun activity and beginning a less appealing one demands more self-control than a young child can muster, so the shift itself, not the new task, is what tips them over.