A question about the proof that right-continuous modifications are indistinguishable.

I'm trying to understand the proof that if $X,Y$ are modifications $(P\{X_t = Y_t\}=1\,\, \forall t \in T$) of each other and are right continuous, that they are then indistinguishable ($P\{X_t = Y_t\,\, \forall t \in T\}=1)$. What I've seen so far is the following:

Right continuity of $X,Y$ allows us to write \begin{align*} P\{X_t = Y_t\,\, \forall t \in T\} &= P\{X_t = Y_t\,\, \forall t \in T \cap \mathbb{Q}\} \\ &=\bigcap_{q \in T \cap \mathbb{Q}}P\{X_q = Y_q\} \end{align*}

and the set $P\{X_q = Y_q\}=1$ for all $q \in T$ so since we take the countable union of such sets, $P\{X_t = Y_t\,\, \forall t \in T\}$ = 1.

What I'm struggling with is why right-continuity is so important here? How does that allow us to approximate the process with rational time points?


Note: I edited this answer to be much more detailed after BallzofFury's comment.

Since $X$ and $Y$ are modifications of each other we have $P(X_t \neq Y_t) = 0$ for all $t \in T$. Then we have \begin{align*} A' :=& \{\omega : X_t(\omega) = Y_t(\omega) \,\,\forall t\in T\cap\mathbb{Q}\} \\ =&\bigcap_{t\in T\cap\mathbb{Q}} \{\omega : X_t(\omega) = Y_t(\omega)\} \\ =& \bigg(\bigcup_{t\in T\cap\mathbb{Q}} \{\omega : X_t(\omega) \neq Y_t(\omega)\}\bigg)^C. \end{align*} Since a countable union of negligible sets is negligible we have $P(A') = 1$. In addition, we can set $$ B := \{\omega : X(\omega) \text{ is right-continuous}\} $$ and $$ C := \{\omega : Y(\omega) \text{ is right-continuous}\}. $$ By assumption $P(B) = P(C) = 1$. Then their intersection $A:=A' \cap B \cap C$ is exactly the collection of those paths which are right-continuous and where the two processes agree on the index set $T\cap\mathbb{Q}$ and we have $P(A) = 1$. Since $T\cap\mathbb{Q}$ is dense in $T$ we have for every $t \in T$ a sequence $(q_n) \subset T\cap\mathbb{Q}$ that tends to $t$ from the right. Then by the construction of the set $A$ and right-continuity we have $$ \lim_{n \to \infty} X_{q_n}(\omega) = X_t(\omega) \quad \text{and} \quad \lim_{n \to \infty} Y_{q_n}(\omega) = Y_t(\omega) $$ for all $\omega \in A$ and since $X_{q_n}(\omega) = Y_{q_n}(\omega)$ we must have $X_t(\omega) = Y_t(\omega)$ for all $\omega \in A$.

For stochastic processes their properties are always understood to hold for almost all paths. So saying that a process $X$ is right-continuous means that almost all paths of $X$ are right-continuous, i.e. $$ P\{\omega : X(\omega) \text{ is right-continuous}\} = 1. $$ So to show that a process has some desirable property we have to show that almost all its paths have that property. In your question the property we want is that the paths of the process are identical to those of the other process. We do this by first showing that they agree for almost all paths on a dense, countable index set and then we use right-continuity to show that for those paths they actually agree on the whole index set T. Thus the desired property holds for almost all paths.