Relays are mainly used as interfaces for electrical system operations, while rheostats vary the speed of electrical motors or the intensity of lighting, depending on their application.