Why Dogs Spin before doing most everything

I've been wondering this myself lately.