A theologist once wrote that the concepts of deadly sins and heaven/hell are one of the most ingenious things anybody has ever invented [+], at least if you are a ruler. With these concepts the church was able to control people even until their last moment (their death). No matter how terrible life as a simple farmer was in the middle ages, who would dare to risk their sweet and pain-free eternal life in heaven by opposing the king and the pope?
I am wondering whether the interest of the church in controlling the bedrooms of their sheep was motivated by the same idea: Not allowing any kind of escape, even temporarily, from hell on earth.
[+] Yes, I know the concepts are older than the catholic church and even christianity but you have to admit that the catholic church had really an unhealthy obsession for the afterlife.