Melted inline fuse

Melting comes from heat.
Heat comes from resistance.
Doesn't take a lot of resistance it create that much heat.

Best guess is the tab was loose in the holder, or as others have said corrosion.

Same issue with bulkhead connectors and headlight connectors