Hopefully someone can explain how this relay works?

The p0875 is pretty common in Allison’s. A faulty reverse pressure switch, faulty or dirty NSBU switch, or the internal harness are all common reasons for setting that code.
https://www.ecuforcetruck.com/produ...-reverse-pressure-switch-circuit-malfunction/