When Einstein literally discovered General Relativity.
Gravity is the curvature of Space Time. From that perspective, objects under gravity are traveling in a straight line.
Fun Veritasium video on the topic: https://www.youtube.com/watch?v=p1W0dpunOaM