It's only true that the transitions are forbidden under a given simplified model of the atom. It is very much possible to calculate the transition probabilities under a more realistic model, and the previously "forbidden" transitions are now just regular transitions that occur with lower probability.
In this case, the simplified model is that of the electric dipole approximation, where the atom is taken to be an electric dipole (reasonable when the wavelength of light emitted during an atomic transition is much larger than the size of the atom).This means it interacts with electromagnetic radiation only through electric dipole interactions, which implies that energy transitions must change orbital angular momentum, hence the 21cm transition is "forbidden". However, in reality, the atom is not truly an electric dipole, and so the 21cm transition is possible by the magnetic dipole interaction, just with low probability. (This low probability is due to the relative strength of the magnetic interaction compared to the electric interaction).