Do you not have to be in control of your body movements for it not to be reckless/dangerous play? Yeah he got the ball and it was a clearance, but his foot still goes through and studs the bloke in an uncontrolled manner.
It can be a red card even if he didn't mean to stud him.