This is very transparent when using the definition $$ Hom_{Cat}(\mathcal C,\mathcal D):=Hom_{t_{\leq0}(Cat)}(\mathcal C\times\Delta^1,\mathcal D)\,, $$ where $\Delta^1=\Box^1=G^1$$\Delta^1=\Box^1=\mathbb{G}^1$ is the arrow category $0\to 1$ and $t_{\leq0}(Cat)$ is the underlying $1$-category of $Cat$.
Le us now go to natural transformations of (strict) $2$-functors between (strict) $2$-categories. Given two such $2$-functors $F,G:\mathcal C\to\mathcal D$ one can see that a natural transformation $F\Rightarrow G$ is the same as a $2$-functors $$ \phi:\mathcal C\times G^2\to\mathcal D $$$$ \phi:\mathcal C\times \mathbb{G}^2\to\mathcal D $$ such that $\phi(-,0)=F$ and $\phi(-,0)=G$$\phi(-,1)=G$, where $G^2$$\mathbb{G}^2$ is the $2$-category with two objects $0$ and $1$ and such that $Hom_{G^2}(0,1)$$Hom_{\mathbb{G}^2}(0,1)$ is the arrow category $G^1=(0\to 1)$$\mathbb{G}^1=(0\to 1)$.
The globe category $G$$\mathbb{G}$, the cubical category $\Box$ and the simplicial category $\Delta$ are known to be suitable geometric shape to model higher structures. Simplicial sets are good models for (weak) $\infty$-groupoids. It was proved (by Jardine ... with some improvement by Cisinski if I remember well) that cubical sets also provide a model for (weak) $\infty$-groupoids.
Let me consider the category $n-Cat$ of (strict) $n$-categories. A a natural transformation between (strict) $n$-functor $F,G:\mathcal C\to\mathcal D$ can be written as an $n$-functor $$ \phi:\mathcal C\times G^n\to\mathcal D $$$$ \phi:\mathcal C\times \mathbb{G}^n\to\mathcal D $$ such that $\phi(-,0)=F$ and $\phi(-,0)=G$$\phi(-,1)=G$, where $G^n$$\mathbb{G}^n$ is the $n$-category with two objects $0$ and $1$ and such that $Hom_{G^n}(0,1)$$Hom_{\mathbb{G}^n}(0,1)$ is the $(n-1)$-category $G^{n-1}$$\mathbb{G}^{n-1}$.