quantum, when using a mechanical relay, you will charge a coil which will move the switch contact. In a solid state relay this is achieved with LEDs and Phototransistors or a similar solid state type of device. When using microcontrollers, you do not want to source or sink a lot of current, so...