Why does a 3 year old hump things an what can I do to stop her from doing it,?

Sexual exploration. This usually passed. It is helpful to distract her and ignore it. All the best.