If you have items in your cart and you then decide to change from delivery to pick-up the page refreshes and the cart shows it is empty. If you then manually refresh the page or go to checkout the items are shown in the cart again.
It’s the same scenario if you initially choose pick-up and then change your mind and select delivery.