Why does one need topological spaces if one has metric spaces?
What is the motivation of the abstract theory of topological spaces?
For me, the theory of metric spaces is quite natural. But I do wonder why there is the need of generalizing the whole theory... For instance, what are examples of topological spaces that are not metric spaces that really show that the theory of topological spaces is useful. There should be a strong reason, pathological examples don't suffice.
Metrics are often irrelevant. Even when working with metric spaces, it is not uncommon to phrase an argument purely in the language of open sets - and I have not infrequently seen mathematicians write proofs relying heavily on a metric and a complicated analytical argument when a simpler topological proof would suffice. Essentially, a topological space is a weaker structure than a metric space with a lot of the same logic.
Metrics are sometimes unnatural. There is a lot of study with topology where one works in metrizable spaces, but where there's no clear candidate for which metric to use - and it doesn't matter because we only care about topology. A common example of this is that the extended reals $\mathbb R\cup \{-\infty,\infty\}$ is metrizable, being homeomorphic to $[0,1]$, but it's really inconvenient to actually use the metric because every metric greatly distorts the ends of the real line - it's almost universally easier to think about the space in terms of open sets, noting that "close to $\infty$" means "bigger than some value" and things like that - where there's still some clear metric-like ideas, but we don't have to warp the line to do it. A lot of spaces fall into this category: for instance, projective space, one point-compactifications, and cartesian products all tend to fall into this category. Similarly, in a simplicial or CW complex, there tends to be a possibility of defining a metric, but we really don't care about it because we're more interested in the combinatorial structure of the connections or the topological properties than any idea of distance.
Some important (categorical) constructions don't work with metrics. A broader reason that metrics are not often used is because there's not really a good category of metric spaces. There is no notion of, for instance, an initial topology or an infinite product space - but these are extremely important in functional analysis. For instance, the Banach-Alaoglu theorem is really critical in functional analysis, especially in combination with theorems about duals such as the Riesz representation theorem, but these deal with the weak-* topology, which is usually not metrizable - and they often reason about these topologies via Tynochoff's theorem which simply has no analog in the theory of metric spaces. These theorems relate to incredibly important spaces that might have some nice properties (like Hausdorff or compact), but also fail others (like metrizable or even first countable). There are also wonderful things such as the Stone-Cech compactification which have surprising universal properties - but lead to incredibly badly behaved spaces which really cannot fit into the theory of metric spaces.
Some useful topological spaces really aren't at all like metric spaces. Examples such as the Zariski topology or the order topology on a poset often greatly contrast with the usual intuition behind topology - and allow familiar topological reasoning on an unfamiliar object. These spaces, however, are often not compatible with the theory of metric spaces, so there is not convenient flow of ideas that way.
This isn't to say that metric spaces are not useful, but they are good at describing spaces in which distance is a notion we want to think about. They are not so good as a basis for thinking about shapes and spaces more generally, where we might intentionally ignore distances to allow us to think about deformations and such.