[guided]The only obstruction to the ranks forming a permutation is the possibility of ties. We remove that obstruction first.
Let $(\Omega,\mathcal F,\mathbb P)$ be the probability space from the theorem statement. Let $\mu$ be the common distribution of the random variables $X_1,\dots,X_n$. Thus for every Borel set $A \subset \mathbb{R}$,
\begin{align*}
\mu(A)=\mathbb{P}(X_1 \in A).
\end{align*}
Because the variables are identically distributed, this is also the distribution of each $X_i$. Because the common distribution is continuous, it is atomless: for every $x\in\mathbb{R}$, the singleton $\{x\}$ has $\mu$-measure zero.
Fix two distinct indices $i,j \in \{1,\dots,n\}$. Since $X_i$ and $X_j$ are independent and have common law $\mu$, the random vector $(X_i,X_j)$ has distribution $\mu\otimes\mu$ on $\mathbb{R}^2$. Therefore
\begin{align*}
\mathbb{P}(X_i=X_j)
=
(\mu \otimes \mu)\bigl(\{(x,y)\in \mathbb{R}^2:x=y\}\bigr).
\end{align*}
Let $D := \{(x,y)\in \mathbb{R}^2 : x=y\}$ denote the diagonal. The set $D$ is closed in $\mathbb{R}^2$, hence Borel measurable, so its indicator function $\mathbb{1}_D: \mathbb{R}^2 \to \{0,1\}$ is Borel measurable. Since $\mathbb{1}_D$ is non-negative, Tonelli's Theorem applies to the product measure $\mu \otimes \mu$ and gives
\begin{align*}
(\mu \otimes \mu)(D)
=
\int_{\mathbb{R}} \left(\int_{\mathbb{R}} \mathbb{1}_D(x,y)\,d\mu(y)\right)d\mu(x).
\end{align*}
For a fixed $x \in \mathbb{R}$, the inner integral is the $\mu$-measure of the vertical section
\begin{align*}
D_x := \{y \in \mathbb{R} : (x,y) \in D\}=\{x\}.
\end{align*}
Because the common distribution is continuous, the measure $\mu$ has no atoms, so $\mu(\{x\})=0$ for every $x \in \mathbb{R}$. Hence
\begin{align*}
(\mu \otimes \mu)(D)
=
\int_{\mathbb{R}} 0\,d\mu(x)
=
0.
\end{align*}
Therefore
\begin{align*}
\mathbb{P}(X_i=X_j)=0.
\end{align*}
Now define the event on which no two sample values are equal:
\begin{align*}
E := \{\omega \in \Omega : X_i(\omega) \neq X_j(\omega)\text{ for all }i \neq j\}.
\end{align*}
Its complement is the event that at least one pair ties. Since there are only finitely many unordered pairs, the union bound gives
\begin{align*}
\mathbb{P}(E^c)
\leq
\sum_{1 \leq i < j \leq n}\mathbb{P}(X_i=X_j)
=0.
\end{align*}
Thus $\mathbb{P}(E^c)=0$, equivalently $\mathbb{P}(E)=1$. This is the point at which the continuity, equivalently atomlessness, of the common distribution is used.[/guided]