The rule is in place to keep the offense from batting a ball out of the endzone on the defensive end .