Verb + à + infinitive
se préparer
à
The constructions
àse préparer à + infinitif
Meaning : to get ready to do
Elle se prépare à passer le DELF en novembre.
àse préparer à quelque chose
Meaning : to prepare for something
Il se prépare à l'examen depuis trois mois.
Why
Se préparer à takes à in both cases. Do not confuse it with préparer quelque chose, without a preposition: you préparez un examen, you vous préparez à un examen. Both are correct, and the meaning is the same.