Why is an object stuck to another?
You more than likely hit O by accident, this enables proportional editing in object mode just as it does in edit mode and can cause nearby objects to mimic the one(s) being transformed.

Just turn it off by clicking the blue icon or by pressing O again.