Pinocchio's bizarre sub plot

Pinocchio is about a wooden boy whos purpose is to understand humans and become real, but for some odd reason, he and many other children are transformed into donkies... why? what does that have to do with a wooden boy brought to life? why cant they just stay human? thats like if peter pan but they transform into ponies