Looks non-OEM, And my first thought is connected to your battery, for a battery charger system, like a Battery Tender, although it is not a BT brand connector.
Remove the spare tire and follow the wires to see it they connect to the battery terminals.
HTH,
LarryB