My main interest in this comes from starting to learn about representations of totally disconnected, locally compact topological groups $G$, and their representations. I came across the definition of "smooth" functions $\phi:G\to \mathbb{C}$ as being those which are locally constant, and smooth representations $G\to\text{End}(V)$ being those for which $\text{Stab}_G(v)$ is open for all $v\in V$.
These definitions lead me to two questions, which I suspect do not have technically precise answers, but for which I'm hoping there exists some good heuristic motivations.
Why is the definition of "smooth" for functions $\phi:G\to\mathbb{C}$ the "right" definition? That is, why is this considered to be the notion of functions on totally disconnected spaces that is analogous to the classic notion of smooth functions $f:\mathbb{R}\to\mathbb{R}$?
in the same manner, why is the definition of smooth representations as above, the "right" analogue of smooth representations of Lie groups?
These don't seem totally alien to me given the nature of the topology of totally disconnected spaces, but I'm hoping someone can spin a narrative more convincing than just saying the definitions involved are very "pointy".
Also, I suspect that the answer to 2) will follow more or less directly from any reasonable answer to 1).
I'm happy to simply be directed to a source that has already laid this out.