"This is because the standard MP4 tag atom (TRKN) can't store leading zeros.
And also FYI in m4a tags the track number and the total amount of tracks are
mapped to two different fields. TRACK and TOTALTRACKS
You can see it in the extended tag view [Alt+t].