I believe that's largely because of Papal doctrine (which still exists) which stipulates that children in such a marriage must be raised Catholic.
It's the reason why the Act of Settlement forbids heirs to the British Crown from marrying Catholics (technically it forbids the heir to the throne from marrying non-Anglicans).