Looking up the etymology of 'egad' I saw that it is an archaic, euphemistic form of 'O God' or 'Ye God.' I assume this was a one off evolution, and the 'how' was some idiosyncratic shift in the interjection (if it is specifically known how it happened please include in your answer.)
Did this 'egad' catch on in a certain region for some reason, leading it to become more popular? Was it used in some popular form that helped it catch on?