As discussed in the following question it's impossible to have a pointwise limit of continuous functions converge to $1_{\mathbb{Q}\cap[0,1]}$.
That said, why doesn't the following sequence of functions converge to $1_{\mathbb{Q}\cap[0,1]}$?
Let $S = \{q_j\}_{j=1}^{\infty}$ be an $\mathbb{N}$-indexed sequence of rationals in $[0,1]$.
$f^{(1)}(x) = 1 - \left((x-q_1)\right)^{(1/1)}$
$f^{(2)}(x) = 1 - \left((x-q_1)(x-q_2)\right)^{(1/4)}$
$f^{(3)}(x) = 1 - \left((x-q_1)(x-q_2)(x-q_3)\right)^{(1/9)}$
In General:
$f^{(i)}(x) = 1 - \left(\prod_{j=1}^{\infty}(x-q_j)\right)^{\frac{1}{i^2}}$
If the power $\frac{1}{i^2}$ isn't small enough, then just assume that it's some sufficiently small value like $\frac{1}{e^i}$. The idea is that when $x \in \mathbb{Q}$, $f(x) = 1$, since the term $(x-q)$ will be in the product, and when $x$ is irrational, the $i^2$ root will have the product approach 1.