This is not involved with the structure of module or vector space over $k$, it derives simply from easy properties of abelian groups.
From the surjectivity of the composite $N \to M \to M / \mathfrak{m} M$, you have that every class in $M / \mathfrak{m} M$ comes from an element of $N$, i.e. for every $x \in M$, there exists $y \in N$ such that $x + \mathfrak{m} M = y + \mathfrak{m} M$ as elements of $M/ \mathfrak{m} M$, hence $x -y \in \mathfrak{m} M$, therefore $x \in y + \mathfrak{m} M \subseteq N + \mathfrak{m} M$. Since this holds for every $x \in M$, you have $M \subseteq N + \mathfrak{m} M$. But the opposite containment $\supseteq$ is obvious.
If you want, convince yourself that, if $G$ is an abelian group and $H, K$ are subgroups of $G$, then $G = H + K$ holds if and only if the composite $H \hookrightarrow G \twoheadrightarrow G/K$ is surjective.