Who knows what these wires were used for but they need to be secured.
Nonmetallic sheathed cable shall be secured by staples, cable ties, straps, or similar fittings so designed and installed as to not damage the cable. Where staples are used for cable sizes smaller than three 8 AWG conductors, they shall be of the insulated type, or listed noninsulated staples driven by staple guns shall be permitted. Cable shall be secured in place at intervals not exceeding 1.4 m (4½ ft) and within 300 mm (12 in.) from every cabinet, box, or fitting. For other than within 300 mm (12 in.) of a cable termination at a cabinet, box, or fitting, cables passing through successive holes in adjacent framing members no more than 600 mm (24 in.) apart shall be considered to be secured.