Sucrose and powdered sugar are not just sweeteners, but also make the cake foamier and more creamy during whipping, which gives it a better texture.
In addition, the sweetness of xylitol is not as good as the sweetness of sucrose, so if you make a cake, fructose glucose can be mixed instead of sucrose.