What could be the cause of eroded mortar in exterior brick?
The gaps are there intentionally. They are weep holes which allow moisture to escape from inside your walls. This website has some more information as well.