When there are multiple sessions, the default for smriprep, qsiprep and fmriprep is to merge the anatomical image into what it is called a robust template, with the FreeSurfer methodology. There are different ways to merge several images into such a template. Here again, the default is to align this template on the first image (according to the name of the session in alphabetical order).
More details here.
If you want to process each session separately, you can follow the recommendation from @Steven from another thread:
For more details on the creation of the robust template within fmriprep (and also what happens to the T2w images), you can look at this other discussion: