In probability theory, conditional expectations are rigorously defined so that, for instance, for a pair of random variables $X$ and $Y$ defined on the same probability space,
$$
\mathbb{E}\left[X\right]{}={}\mathbb{E}\left[\mathbb{E}\left[X \big| Y\right]\right]\,.
$$
This is also true if "$Y$" above is replaced by a suitable collection of probabilistic "events" $A$ (if you are interested, the technical term for this collection is a Sigma-algebra), so that
$$
\mathbb{E}\left[\mathbb{E}\left[X \big| A\right]\right]
$$
also makes sense. In any probabilistic experiment, therefore, computing expectations recursively simply requires identifying those mutually exclusive events on which to compute these conditional expectations on.
Edit:
A simple application of this can be seen as follows. For a discrete random variable $X$ describing an experiment that can either terminate or repeat (with suitable independence assumptions), we have
$$
\begin{eqnarray*}
\mathbb{E}\left[X\right]{}={}\mathbb{E}\left[X \big| X\mbox{ ends}\right]P(X\mbox{ ends}){}+{}\mathbb{E}\left[X \big| X\mbox{ starts again}\right]P(X\mbox{ starts again})\,.
\end{eqnarray*}
$$
But, with suitable independence assumptions,
$$
\mathbb{E}\left[X \big| X\mbox{ starts again}\right]{}={}\mathbb{E}\left[X \right]\,,
$$
which is why the recursion works.
More explicitly, using the example in the question, consider the following Measurable space.
Define outcomes, all of which are contained in the sampe space $\Omega$, as follows:
1) $\omega_i$ := roll first 1 on ith roll, for all $i\in\mathbb{N}$;
2) $\omega_{\infty}$ := never roll a 1;
Use the power set of $\Omega$, $P^{\Omega}$, as the preferred sigma-algebra, and assume a suitable probability measure. Assume a random variable defined on this probability space whose realisations are either the number of tosses before observing the first $1$ or 0. That is, for $\omega\in\Omega$:
$$
X(\omega){}={}\left\{\begin{array}{c} i\,,\mbox{ if }\omega=\omega_i \\ 0\,,\mbox{ otherwise} \end{array}\right.
$$
Further, assume that $X$ can be written as the conditional sum of independent, identically distributed random variables $X_i$, each defined on the same probability space as $X$ as follows. For $\omega\in\Omega$,
$$
X_i(\omega){}={}\left\{\begin{array}{c} 1\,,\mbox{ if }\omega=\omega_i \\ 0\,,\mbox{ otherwise} \end{array}\right.
$$
so that
$$
X(\omega)=\sum\limits_{i=1}^{\infty}{\textbf{1}}_{\left\{\omega=\omega_i\right\}}\left(X_i{}+{}\sum\limits_{j=1}^{i-1}(1{}-{}X_{j-1})\right)\,.
$$
Note that, due to the independence and identically distributed nature of the $X_i$, we must have
$$
\mathbb{E}\left[X\right]=\mathbb{E}\left[ \sum\limits_{i=j+1}^{\infty}{\textbf{1}}_{\left\{\omega=\omega_i\right\}}\left(X_i{}+{}\sum\limits_{r=j+1}^{i-1}(1{}-{}X_r)\right) \bigg|\, X_k=0 \mbox{ for all }k\leq j \right]\,.
$$
We are done, for we must have
$$
\begin{eqnarray*}
\mathbb{E}\left[X\right]&{}={}&\mathbb{E}\left[X{\textbf{1}}_{\left\{\omega=\omega_1\right\}}\right]{}+{}\mathbb{E}\left[X{\textbf{1}}_{\left\{\omega\neq\omega_1\right\}}\right]\newline
&{}={}& 1.P\left({\left\{\omega=\omega_1\right\}}\right)\newline
&&{}+{}\mathbb{E}\left[ \sum\limits_{i=2}^{\infty}{\textbf{1}}_{\left\{\omega=\omega_i\right\}}\left(X_i{}+{}\sum\limits_{r=2}^{i-1}(1{}-{}X_r)\right) \bigg|\, X_k=0 \mbox{ for all }k\leq 1 \right]P\left({\left\{\omega\neq\omega_1\right\}}\right)\newline
&{}={}& P\left({\left\{\omega=\omega_1\right\}}\right){}+{}\mathbb{E}\left[X\right]P\left({\left\{\omega\neq\omega_1\right\}}\right)
\end{eqnarray*}
$$
and, therefore, recursion.