Let $F:N\to M$ be a smooth map from a smooth manifold $N$ to a smooth manifold $M$ (without boundary) and $S$ an immersed submanifold of $M$ such that $F(N)\subset S$. If $F$ is continuous as a map from $N$ to $S$, then $F:N\to S$ is smooth.
This is theorem $5.29$ in John Lee's introduction to smooth manifolds $2$nd edition and in that same book he wrote the following proof (I will not give the full proof but only upto the part where I don't understand):
"$Proof$: Let $p\in N$ and $q=F(p)\in S$. Then as $S$ is an immersed submanifold, it is locally embedded. Therefore there is a neighborhood $V$ of $q$ such that $V$ is embedded in $M$, that is the inclusion $i|_V:V\hookrightarrow M$ is a smooth embedding. This implies $V$ satisfies the local slice criterion, that is there exist a smooth chart $(W, \psi)$ for $M$ that is a slice chart for $V$ centerd at $q$. The fact that $(W,\psi)$ is a slice chart means that $(V_0, \widetilde{\psi})$ is a smooth chart of $V$, where $V_0 = W\cap V$ and $\widetilde{\psi}= \pi\circ \psi|_{V_0}$, with $\pi: \mathbb{R}^n\to \mathbb{R}^k$ the projection onto the first $k=\dim S$ coordinates."
I understand everything upto this line. The next line below is where my confusion started.
"Since $V_0 = \left( i|_V\right)^{-1}(W)$ is open in $V$, it is open in $S$ in its given topology, and so $(V_0, \widetilde{\psi})$ is also a smooth chart for $S$."
I know that $V_0$ is open in $S$ and I know that $(V_0, \widetilde{\psi})$ will be a (continuous) chart but I dont understand the claim that $(V_0,\widetilde{\psi})$ is a smooth chart for S. How do we make sure that $(V_0, \widetilde{\psi})$ belongs to the smooth structure of $S$ by merely knowing $V_0$ is open? Is there a relationship between the smooth structure of $V$ and the smooth structure of $S$. Please help me I'm so confuse.