Yup, sounds like it’s the wiring to let the system know if the boot is open or not. And if it’s open the light is on, when is closed the light isn’t on. Wonder why it’s been cut in the first place.
I would think it will be a quick easy fix if you can find the other wires they connect to, but I’m not sure.