I *think* that wire is supposed to be held against the inner fender with a three-finger clip like the one on the alternator.
The connector just pushes on the threaded portion of the switch - just like the gas tank sender.
Inside, somehow it ties to the brake warning light. When the switch grounds, the light comes on.