Saying something is "just a theory" does not make any sense, scientifically speaking. Scientific theories provide explanations that have been tested and proven.
The law of gravity describes and quantifies the attraction between two objects. But the law of gravity doesn’t explain what gravity is or why it might work in this way. That’s because that kind of explanation falls into the realm of theory.