Hotwire Wiring questions

. Blue – Brake light output to rear brake lights. - Needed? Why
e. Purple – Backup lamp output to rear backup lamps. - Needed? Why

Do these go to the ecm or to engine compartment?