For a group $G$ its classifying space $BG$ can be thought of as a space with the property that $G∼ΩBG$ (the based loop space of $BG$).
This actually works more generally for spaces equipped with a multiplication that is 'highly homotopically associative'.
An important use for $BG$ is classifying principal $G$-bundles over a based space $X$: there is a bijection between the set of based homotopy classes $[X,BG]$ and the set of isomorphism classes of principal $G$-bundles.
Ok, but it is not clear to me why it is useful to have a bijection with the set of based homotopy classes $[X,BG]$.