24 hour Urine sample

Okay Yesterday at my doctors appointment my doctor was out on vacation so I was given another doctor. Anyway she’s asking me for a 24hour urine sample?? I’m confused 🤷‍♀️ then why do I have to keep it In the refrigerator “ewww”” anyone can explain this too me