also, I should have just googled in the first place:
How Does a Brake Controller Know when a Trailer is Connected
When a trailer with electric brakes is connected to a vehicle that has a brake controller that brake controller is sensing the draw of the brake magnets by sending back a small amount of voltage on the blue wire.