Its for a computer case. This component activates the lighting on the left side door when it is shut. The computer has RGB lighting controls so I assume that's why there needs to be 3.
Do you have a multimeter you can check for voltages on the pins? It could be a combo of intrusion detection and power to the lights. At least that's the first thing to come to mind.