Block breaking occasionally resets when an item like the one being held is picked up/upon changing the object being held
If digging a block (eg dirt), while your hand contains the same block, upon collecting a block of that type the breaking animation will reset. This will only happen when you have an empty hand and then an object is picked up. This also occurs when changing the item which you are holding.