In a theorem such as this, found in Rudin:
Let $u$ and $v$ be real measurable functions on a measurable space $X$, let $\phi$ be a continuous mapping of the plane into a topological space $Y$, and define
$h(x) = \phi (u(x), v(x))$
for all $x \in X$. Then $h: X \to Y$ is measurable.
Isn't it redundant/unnecessary to refer to $Y$ as a topological space? Every set can be a topological space, because you can generate a topology, no matter how trivial, from every set, right? Since the theorem makes no explicit use of any topology on $Y$, why does $Y$ need to be labeled as a topological space? In the same way, why are any spaces labeled as "measurable spaces" when every set, at least trivially, is a measure space?
Note: I am aware that both a topological space and a measurable space refer more technically to the ordered pairs of a set and a collection of subsets, known as the topology or measure set respectively. However, when no explicit reference is made to these collections of subsets I don't understand how sets can be meaningfully classified as "topological" or "measurable."
When we say "topological space $Y$", that is an abbreviation for "topological space $(Y,T)$" for some unspecified (but fixed) topology $T$. In other words, we have some specific topology we are using on $Y$ (and will use this topology to make sense of words like "open set", "continuous", etc), but we are not bothering to explicitly name this topology. It is very important that we are not just saying there exists a topology on $Y$ (as you say, that is true of any set), but that we are actually picking some particular topology, because we are using that specific topology when we say $\phi$ is continuous, for instance.
This sort of abbreviation is extremely common throughout mathematics and is done with pretty much any kind of mathematical structure. For instance, when we say "Let $G$ be a group" we actually mean that we are letting $(G,\cdot)$ be a group for some binary operation $\cdot$ that we will not explicitly name. Basically, it would get extremely tiresome to constantly be writing long tuples for every single mathematical structure we talk about, so we abbreviate and refer to them just by their underlying set.