I think what you said is true but that also ketchup as a material is shear thinning—meaning as you shake or tap the bottle, this creates stress or “shear” on the liquid which causes the viscosity to decrease. It also takes a little bit of time for the liquid to re-thicken, so it will actually pour pretty well a few seconds after shaking it.
Can see the before and after images in this article