That specific golden retriever puppy must've had a feeling about the people who came inside because she separated herself ...
Once that feels comfortable and easy, your next step ... few minutes before leaving, and sitting quietly by the crate for a few minutes after returning, so the puppy doesn't link the door opening ...