The purpose of baby shower trivia is to entertain guests and celebrate the upcoming arrival of a baby by testing their knowledge about pregnancy, babies, and parenting. It adds a fun and interactive element to the baby shower festivities.