I noticed that there are two different things in mathematics both referred as “generalization”.
The first is like replacing real numbers with complex numbers, that is replacing a set in consideration with its superset.
The second is like replacing a metric space with its topology, that is abstracting away some properties.
Why are both called with the same word “generalization”? What is common in these two? Please comment.