Mathematicians didn't just randomly decide to go to abstraction and the foundations of mathematics. They were forced there by a series of crises where the mathematics that they knew fell apart. For example Joseph Fourier came up with a way to add up a bunch of well-behaved functions - sin and cos - and came up to something that wasn't considered a function - a square wave.
The focus on abstraction and axiomatization came after decades of trying to repair mathematics over and over again. Trying to retell the story in terms of the resulting mathematical flow of the ideas, completely mangles the actual flow of events.