Sifting the powdered sugar, almond flour, and espresso powder helps remove any lumps and ensures a smoother, more consistent macaron batter. It also incorporates air into the mixture, contributing to the macarons' lightness.