Historically, paczki was created to use up eggs, lard, sugar and jams before the Lent fasting began on Ash Wednesday.
Ash Wednesday marks the beginning of the period of Lent. They're two of the most important liturgical events for Christians and help prepare them for Easter.