I recommend to read Kline's:
https://www.amazon.com/dp/0195061357/?tag=pfamazon01-20
Basically, the ancient Greeks did not trust algebra because ##\sqrt{2}## was not rational. They had a very hard time accepting this fact. They thought that integers (and thus rational numbers) were intuitive, but irrational numbers were not. This is why they forced their proofs to be geometrical, since these "paradoxes" do not show up in geometry. Hence everything they did was geometric. For example, Euclid's Elements contains a lot of number theory, but it is all stated in a (rather awkward) geometric language.
The Greeks had such an influence on the rest of the history of mathematics, that their example was followed. Hence Newton's famous Principia was geometric too since he wanted to imitate Euclid's Elements. On the other hand, irrational numbers were so convenient that they started being used in mathematics anyway. But nobody knew what they were or why they worked. This (together with the use of infintesimals in calculus) started an era where a lot of math was done nonrigorously. It was only 150 years ago that the concept of an irrational number was clarified (although not everybody agrees with this clarification) and that math was starting to be rigorous again. Whether this is a good thing is a matter of opinion.
In any case, geometry had a very big influence on mathematics. So much that old mathematicians in the 17th and 18th century were often called "geometers". Geometry lost this influence mainly because of the discory of non-Euclidean geometry, which showed that Euclidean geometry was not really the only system that could describe our world. Since that discovery, algebra has been dominant in most mathematics and it still is.