Why is 2003 Ford Explorer brake light switch wiring is different on the replacement part?

The replacement brake light switch has 2 wires, both are green/ red. But on the harness it connects to, the 2 wires are green/red and brown black. How do I know which wire to connect to each other because they dont match?
2 answers 2