a perspective i like is the following: the datum of a subset of a given set $X$ is equivalent to a function $X\rightarrow\{0,1\}$. the subset $A\subseteq X$ is identified with its "characteristic function" $1_A\colon X\rightarrow\{0,1\}$ that maps points of $A$ to $1$ and other points to $0$. the inverse is given by taking the preimage of $1$ under such a function.
this is to say that subsets are just a type of inverse image, so naturally they behave well with respect to other inverse images, yet not necessarily with images (you can always "pull back" a function out of space, you can't alwa…