Different people sat down over the last millennium or so and realised that the natural numbers could only express quantity and not direction. They looked around them at the physical reality that they found themselves in, and noticed that sometimes it was useful to count in the opposite direction (ie. decreasing). Eventually they realised that they could do this by adding in some new numbers that were ordered below 0, and which functioned as additive inverses to the natural numbers.
This process was constrained by the properties of reality; so the properties of the negative numbers are not arbitrary, they are fixed by properties of the world that different people noticed.
Eventually (around the end of the 19th century maybe?) people tried to formalise the properties of these numbers in axiomatic schema. They noticed that certain of these axioms could also describe other extended algebraic objects which are a bit like the integers, and called these objects rings. So that's where the ring axioms came from; by observing reality and then generalising