When a primer detonates, it drives the primer back out of the case as far as it can go. When the powder ignites, the pressure then drives the case back as far as it will go, re-seating the primer flush.
In a bottleneck rimless rifle case, the same thing happens, except the case is is also pushed forward as the primer is pushed back. This can shorten the case shoulder a bit. When the powder burns, the pressure then pushes the case back and probably stretches the case a bit, as it sticks the chamber wall.
If the powder charge is mild, the case may not get pushed back against the bolt face, leaving the primer sticking out. Newbies think this is a sign of high pressure. It is the opposite.