In short, Krull dimension is an important concept because it is an intrinsically algebraic definition of dimension which precisely captures our geometric intuition for what the (topological) dimension of a variety/scheme should be.
For example, we associate $\mathbb{A}^n_{\mathbb{C}} = \mathrm{Spec} \,\mathbb{C}[x_1 \ldots x_n]$ with the topological space $\mathbb{C}^n$, although the two are not homeomorphic. The fact that the Krull dimension of $\mathbb{C}[x_1 \ldots x_n]$ is $n$ captures this.
This then allows us to formalize the notions of dimension and co-dimension in such a way that they can be generalized to arbitrary rings (such as $\mathbb Z$) where no geometric intuition is available, and to study them from a geometric point of view. We can take geometric proofs that rely on the concept of dimension, translate them into algebraic language, and then prove the same statements in much greater generality.
A very simple example of this principle is the fact that points in $\mathrm{Spec}\, A$ correspond to prime ideals of $A$, but our geometric intuition for ''points'' is really restricted to the maximal ideals of $A$. The inclusions of these points correspond to maps $A \to A/\mathfrak{m}$, which has Krull dimension 0. Hope this helps.