My cat does his business in the litter box but won't actually go inside the litter box.?

My cat will stand on the side and do his business over the edge. It actually is inside the litterbox but it's all clumped right up front and becomes a huge hassle when cleaning. He didn't use to do this and I haven't changed his litter so I'm just confused.

Could it be a medical reason?
5 answers 5