In my opinion bolts can loose due to the following reasons-
Under-tightening
Vibration
Embedding
Gasket creep
Differential Thermal Expansion
Shock
However, you can overcome these issues or minimize them to some extent by using these-
Washers
Mechanical devices
Prevailing torque nuts
Adhesives