For example, $\forall x \in X, P(x)$ can be viewed as a map $P : X \to \text{TrueProp}$ the collection of true propositions.
Why do we make the distinction in type theory, which seems to want to reduce all constructions down to a few building blocks? In type theory $\forall$ is a handled using what's called a Pi-type, usually, but why didn't they just handle it using a mapping of types?
Certain $\forall$ statements become even more obviously just a map, as in $\forall x \in X, f(x) \in Y$ is the same thing as $f: X \to Y$.
I'm experimenting with software implementations of logic / math, so that's why I've asked this.