Let $G$ be a topological abelian group. Its classifying space $BG$ is (at least sometimes) also a topological group. For example if $G$ is a finite abelian group, higher Eilenberg-MacLane spaces are $K(G,n)=B^nG=B(B^{n-1}G)$, implying that $B^{n-1}G$ must be a group.
When is it true that $BG$ has a group structure?
How can we describe the multiplication in $BG$ in terms of the multiplication in $G$?
I would like to understand this directly from the realization of $BG$ as the quotient $EG/G$, where $EG$ is a contractible space with a free a action of $G$. Or at least I would like to see the explicit connection of that model with a one more suitable for providing a product structure.