Sounds like a lightning ground. Does the wire go to a keel bolt?
Lightning grounding is a can of worms. to ground or not and if you ground where is the best place.......
I'm of the opinion that if the clouds are one plate of a capacitor and the water surface is the other then your boat sits on the bottom plate and the mast sticks up above the bottom plate and the keel sticks below it. The nature of fiberglass is that it is an insulator so the natural tendency is for lightning to strike the mast and then move down till it is at the level of the water. at that point it wants to go horizontal and not continue downward toward the keel. It depends on the actual electrical insulation (air, hull, distance, people.....the boat layout) that is between the bonding wire at the water level and the water surface. It may be that the shortest path to ground is down to the keel then up to the water surface (note that the charge is only on the water surface and about 0.1" deep) or it may be for the current to jump to some other metal object near the hull and at the water line and then through the hull to the water surface.
So my solution is to keep the lightning out of the cabin altogether and put a wire from the shrouds, and stays over the side. A set of auto battery jumper cables works great. Cut them in half so you have 4 long heavy wires with a clamp on each. one for the port shroud, one for the starboard shroud, one for the forestay and one for the backstay.