Applying the functor "free $\mathbb Z$-module", the abelian monoid becomes a commutative ring $\mathbb Z[T]$, a polynomial ring in one variable. The bar construction, a simplicial set, becomes a simplicial abelian group: the bar construction for the augmented $\mathbb Z$-algebra. It follows that the homology of the classifying space is $Tor^{\mathbb Z[T]}(\mathbb Z,\mathbb Z)$, which is the homology of the circle. That, plus the fact the fundamental group is what it should be, plus the fact that the classifying space inherits its own commutative mponoidmonoid structure, gives the result.