Pilots perform an inspection of the aircraft before every flight. Missing fasteners on the top of the wing would not be visible during a walkaround from the ground.
Planes are allowed to fly with many parts missing. A few missing fasteners on a non structural part is fine, but missing fasteners that the pilots are unaware of is a big issue.