I'm puzzled by the definition of ideals generated by a subset of a ring in Aluffi, Algebra: Ch 0.
The previous chapter on groups is (for an algebra book of this level) quite categorical in spirit. In particular, it gives definitions and proofs in terms of universal properties whenever possible. For example, given a subset $A$ of a group $G$, the subgroup generated by $A$ is defined as the image of the unique group homomorphism $F(A) \to G$ where $F(A)$ is the free group on $A$.
This perspective returns when the submodule generated by a subset of a module is defined using the universal property of free modules. Meanwhile, however, the definition of the ideal generated by a subset of a ring is more traditional. It is essentially defined to be the smallest ideal of the ring containing the subset.
Since the book makes so much effort to give element-free definitions in terms of universal properties, I'm wondering whether such an approach is possible for defining ideals generated by subsets, and if so, why Aluffi is avoiding it. I suppose one cannot hope to straightforwardly mimic the group or module case as the images of ring homomorphisms are not in general ideals.