He wanted a legitimate male heir. And so, to deny him that, the Church was willing to risk his wrath.
And they got it.
Oh, so the lust, sheer evil, and greed of Henry VIII are the fault of the Church? You’re too much!