Meaning: Stuff happens
Yes, it stinks when you have a delicious cookie and it just crumbles away with the first bite. It’s even worse when you have a tall, delicious glass of milk with that cookie and it spills all over the place. But hey, there’s no sense despairing over it. Come to think of it, this idiom's not all that hidden.