I understand mathematically that a function can be differentiable but its derivative might have discontinuities, it's not necessary that the derivative of a differentiable function be continuous.
What I can't wrap my mind around is why? Intuitively, let's say I have a function $f(x)$ which is differentiable everywhere on a closed interval $I$, and its derivative $f'(x)$ has a jump discontinuity somewhere in the interval. Then how would the function $f(x)$ be differentiable at the point where the derivative has a jump discontinuity? Shouldn't the two sides of the limit differ, making it not differentiable everywhere? I feel like if the derivative of a function is continuous except at a certain number of points, then the function itself should be differentiable everywhere except at those points, but this isn't necessarily true, and I would like some sort of intuitive explanation of why that is.