Galvanic isolation can be very useful RS-485 or RS-232-based board designs to deliver the required voltage level to both sides of the connecting cable without introducing switching noise, common mode voltages, or for sensors that can be sensitive to ground loops.