Many microcontroller designs typically mix multiple interfacing methods. A microcontroller (µC) system can be viewed as a system that reads from inputs, performs processing and writes to outputs.
The relay's primary appeal is its ability to do a lesser-switch's bidding but it's capable of so much more. Relays can be wired together to create very useful, simple, and utterly reliable networks.