Prohibition on Communion is a consequence of grave unrepentant sin, not a cause.  It protects the soul from even graver offenses.  It's an act of charity.

These points and principles slip off the mind of the badly formed.  They get matters all twisted.  It's so obvious, and painful to watch.