I am reading Chapter on characteristic classes from Foundations of Differential geometry by Kobayashi and Nomizu. This chapter starts with concept of Chern-Weil homomorphism.
Given a Lie algebra $G$ with $\mathfrak{g}$ as its Lie algebra and a principal $G$ bundle $P(M,G)$ chern Weil homomorphism is a map from $I(G)\rightarrow H^*(M,\mathbb{R})$ where $I(G)$ is the algebra of symmetric multilinear mappings on $\mathfrak{g}$ invariant by $G$ and $H^*(M;\mathbb{R})$ is the deRham cohomology algebra on $M$. This they define fixing a connection and then proves this map is independent of choice of connection. I am able to understand this.
Can some one help me to understand how this Chern-Weil homomorphism is involved in understanding about chern/Pontryagin/Euler classes? Any reference that explains motivation on these characteristic classes is also welcome. I am aware of Milnor’s book.