The story does not saw how the man got to the store. He may have skipped out of a DUI.
He still could have paid for the pop and just walked around outside until the officer was gone. But I like your thinking.