Saliva thickens through exercise, and is difficult to swallow as a result - so it's easier to gob it out. Loads of studies been done into it (example below). I find it much worse when running in cold weather compared to warm weather. I do think there's a degree of habit-forming as well though...