Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I think the electronic relays may be cheaper; and having less moving parts they are theoretically less prone to break.
So, why do cars still use mechanical relays for turning lights?
I can think of several reasons straight away:
Required, but never shown