It is actually a law formulated by Sir Isaac Newton. A a law, in science, is defined as a generalization that describes recurring facts in nature. Another example would be the laws of thermodynamics.
Gravity is now a scientific fact and no longer a theory. It has been subjected to repeated (replicated), cross validated (different researchers), experiments (scientific method), and has been proven to exist.