The government saw less staff attrition in fiscal 2023 but some demographic groups are still showing higher rates of quitting than others.