I couldn't understand why it says the linear system has a nontrivial solution since the number of rows is :$1$(the original function)$+(n-1)$ (take the derivative $n-1$ times)$=n$. Also there are $n$ columns or unknowns. Why the system is not an independent one?

First of all consider the $n$ functions $f_1,...,f_n \in C^{n-1}(\mathbb{R})$ and suppose there exists $k_1,...k_n$ real numbers such that
$$g=\sum_{i=1}^n k_if_i(x)=0$$
for every $x\in\mathbb{R}$; that is $g$ is the zero-function. The set $C^{n-1}(\mathbb{R})$ is a real vector space of infinite dimension, so $g$ is still a function belong to it. Consider now the first derivative of $g$
$$g'(x)=\sum_{i=1}^n k_if_i'(x), $$
because the derivative of the sum is the sum of the derivative, on the other hand $g\equiv0$, so $g'(x)\equiv0$; then$$g'(x)=\sum_{i=1}^n k_if_i'(x)=0. $$
This means that if $f_1,...,f_n$ are linearity dependent, then $f'_1,...,f_n'$ needs to be linearity dependent in $C^{n-1}(\mathbb{R})$. If you repeat for all order of derivation, you obtain the same result
$f_1,...,f_n$ are linearity dependent iff $f_1^{(i)},...,f_n^{(i)}$ are linearity dependent for every $i=1,...,n-1$.
Finally, consider the functions $f_1,...,f_n \in C^{n-1}(\mathbb{R})$ and take the following matrix $$A=\begin{pmatrix} f_1(x)& ... & f_n(x)\\ ... & ... & ...\\ f_1^{(n-1)} & ... & f_n^{(n-1)} \end{pmatrix}$$
the Wronskian $W(x)$ of $A$ is its the determinant, which clearly it depend on $x$. If there exists a non-zero vector column of real numbers such that
$$A=\begin{pmatrix} f_1(x)& ... & f_n(x)\\ ... & ... & ...\\ f_1^{(n-1)} & ... & f_n^{(n-1)} \end{pmatrix} \begin{pmatrix} k_1\\ ...\\ k_n \end{pmatrix}= \begin{pmatrix} 0\\ ..\\ 0 \end{pmatrix},$$
for every $x\in\mathbb{R}$, this mean that the function are linearity dependent by the discussion above. Viceversa if there exists a real number $\overline{x}$ such that $W(\overline{x})$ is not zero, then the function are linearity independent.