Category theory, roughly, is about the relation between structures of a certain kind, rather than their internal structure.
In the category of groups, I can see how this is the case: the existence of a particular group homomorphism between $G$ and $H$ really tells you alot about $G$ and $H$ as structures.
But I’ve never thought of continuous maps between topological spaces $X$ and $Y$ as “telling us something about $X$ and $Y$”. Admittedly, I’m not very advanced at topology.
I would like to understand this perspective better. Could you give me a broad overview of how a continuous map $f:X\to Y$ “tells us something about $X$ and $Y$”?
In my opinion the easiest way to understand it is to look at the isomorphisms, instead of the continous maps, because they tell much more about the required structure on $X$ and $Y$. If you continue on your example with groups, two isomorphic groups $X$ and $Y$ are such that they will have exactly the same structure for everything regarding groups.
Now it turns out that for topological spaces, the thing that we need to say "$X$ and $Y$ are exactly the same for everything regarding the topology" is the notion of homeomorphism, that is a bijective continuous map whose inverse is continuous. It is not at first obvious why this is the right notion, so let me explain. A topology on $X$ is a class $\tau_X\subset\mathcal{P}X$ of open sets in $X$, satisfying some properties. Now take two topological spaces $X$ and $Y$ with a homeomorphism $f : X \to Y$. $f$ is bijective means that $X$ and $Y$ are the same as sets, $f$ is continuous means that the preimage of $\mathcal{O}_Y\in\tau_Y$ is in $\tau_X$, and $f^{-1}$ is injective means that the preimage of $\mathcal{O}_X\in\tau_X$ is in $\tau_Y$. If you put all this together, it says that $f$ is a bijection between $X$ and $Y$, and the bijection induced by $f$ between $\mathcal{P}X$ and $\mathcal{P}Y$ can restrict to bijection between $\tau_X$ and $\tau_Y$. And this formulation relates much more to the definition of topological space.
Now if $f$ is a continuous map between $X$ and $Y$, by definition, the preimage of every open of $Y$ is open in $X$, so this is already "telling us something relating the topological structure on $X$ with the one on $Y$", but I admit it is pretty vague.
To my knowledge, if you want more general properties to hold, you will want some extra properties for your topological (like separation...), because the category of topological spaces is very weird, but I might be wrong on that point.
Now let's assume that you have a category of "nice" topological spaces (whatever nice means). Studying topology is hard, but we can compute its fundamental group. Now a continuous map $f : X \to Y$ induces a map $\pi_1(f) : \pi_1(X)\to\pi_1(Y)$, which happens to be a group homomorphism, so if you already know how a group homomorphism tells us something about the similarity between the two groups, and if you know (or accept), that the fundamental group tells us a lot about the topology of the spaces, then you see indirectly how a continuous maps tells indeed a lot about the topology of the two spaces.
Note that this explanation I gave is very weak, in the sense that a continuous map tells us a lot more than a group homomorphism on the fundamental groups, it induces also a morphism between the higher homotopy groups (and also teh groupoid version of this statements, for non-connected spaces). So in the end it really says quite a lot, but not much that I can give explicitly