Candlemas Day celebrates when Mary & Joseph took Jesus to the Temple to present him to the Lord 40 days after his birth. (Luke 2:21 - 39). The timing with Imbloc is a coincidence.
If the groundhog sees his (or her) shadow there will be 6 more weeks of winter. If he doesn’t see his shadow spring is only a month and a half away.