Aristotle's perfect cosmos didn't need gravity to hold it together. However the system with planets orbiting the Sun called for an explanation. In the process, Newton was inspired by a falling apple, but Galileo's experiments with falling bodies didn't involve dropping them off the Tower of Pisa.
Gravity - Cosmic Glue