My text contains the following exercise:
Let $X$ be a continuous random variable with CDF $F_X$. Suppose that $\mathbb{P}(X > 0) = 1$ and that $\mathbb{E}(X)$ exists. Show that:
$$\mathbb{E}(X) = \int_0^{\infty} \mathbb{P}(X > x) dx$$
I have already completed the proof, which centers on recognizing:
$$\int_0^{\infty} \mathbb{P}(X > x) = \int_0^{\infty} (1 - F_X(x))dx$$
And then applying integration by parts. But the proof didn't provide any intuition for why the proof statement is true. In particular it is surprising to me that we can integrate over probabilities (technically over probability densities) without including any value of the random variable at all and end up with a value that is in the same units/space as the random variable. $0 < F_X(x) < 1$ but values of $X$ are only required to be non-negative so they could be arbitrarily large. Why does this work?