Basically the same way they do shoulders, fingers, levers, etc...
Every serious computer graphics design suite offers you some way to attach stuff to each other with constraints.
Just as they would connect an arm to the upper body, they connected the ears to Mickeys head and the camera.