Wires can come loose for any number of reasons:
A poor initial connection gradually loosened over time
The device making the connection suffered a mechanical failure
Too much power caused excess heat to burn through the connection or loosen the wires