Let me give an answer in the context of Martingale Theory.
First, let us translate the setting into probabilistic notation. Let $Y_1,Y_2,\dots$ de iid variables with $$p=P(Y_1=1)=1-P(Y_1=-1),$$ where $p\in (0,1/2)$. Define the so-called martingale betting strategy:
$$\phi(y_1,\dots,y_{n-1})=\begin{cases}2\phi_{n-1}, & y_{n-1}=-1\\1&y_{n-1}=1 \end{cases}$$
It's quite straightforward to show that in this setting, the capital at time $n$, defined by
$$X_n=\sum_{k=1}^nY_k\phi_k(Y_1,\dots,Y_{k-1}),$$
is a (strict) supermartingale, so that the expected capital is (strictly) decreasing through time.
One may then wonder why is this system famous, or why one may even consider to play with this strategy. The answer lies in the fact that one may decide to look at the process only at specific times and this new "subsequence" of the initial capital process will be a submartingale! More precisely, if one decides to cash-out only when one has just won, i.e., at times
$$\tau_1=\inf\{n\in\mathbb{N}:Y_n=1\}\:\:\:\tau_{k+1}=\inf\{n>\tau_k:Y_n=1\},$$
then the new capital process defined by
$$Y_k=X_{\tau_k}$$
is a (strict) submartingale. In fact, $Y_k=k,\:\forall k$. (This explains -to some degree - the linearity of the top of your graph).
So now we have established that it is a feasible idea to use this strategy and then just cash-out at a winning time. The reasons for why this strategy can't be carried out in practice are:
Casinos have an upper bound of how much money you can owe them, and if $(X_n)$ is replaced by a modified version of it which is bounded from below: $$X_n'=\min\{X_n,K\}$$ for some real number $K$, then actually $(X'_n)$ is uniformly integrable, which implies by Optional Sampling that for any non-decreasing sequence of a.s. finite stopping times $\sigma_1\leq \sigma_2\cdots$ the process cashing out at those instances, defined by $$Y'_n=X'_n$$ is still a supermartingale.
Even if there was no money barrier, if $p$ is small, as it usually is, then the (geometric) times between successes have big mean and huge variance, such that a player may need to spend a ridiculous amount of time at the casino before he can leave at a favourable point.