In addition to the explanations already provided another key factor related to synth base vs. bass guitar involves tone. Often, synth bass lines have a tonal range and texture which can be very different from the string attack of a base guitar - and often, that difference is wanted/needed, for the genres of music that normally choose synth bass (rap, hip hop, EDM, etc.)