When we calculate seasonality, it is important to separate year trend and seasonality trend. That's why we need to calculate Centered Moving Average first.
Reference:
https://www.itl.nist.gov/div898/handbook/pmc/section4/pmc422.htm
https://www.statisticshowto.com/moving-average/