GDPR:

55: Processing by Official Authorities of Recognised Religious Associations

Moreover, the processing of personal data by official authorities for the purpose of achieving the aims, laid down by constitutional law or by international public law, of officially recognised religious associations, is carried out on grounds of public interest.