This wheel was not properly equilibrated so that all spokes on a given side share the load equally, so absent any kind of spoke retention compound on the spoke or in the nipple, the unloaded spoke unscrewed itself.
The fix is simple: assuming the rim is not bent, using some form of tension measurement, balance the tensions, then using very small turns, bring the wheel back true and round.