Upvote:2
It is fundamentally the result of empire-building and the conversion of "conquered" or "subject" peoples. This animated map shows the spread of religion around the world from c3000BCE to 2000CE.
Wikipedia offers this page on the Growth of Religion which attempts to explain the current, rather than historic, trends.