Probably they had some contractual commitments with TSMC and had to use up their N3B capacity somehow. But as soon as N3E became available it’s a much better process overall.
Ramping up production on a new die also takes time. The lower volume and requirements of the M4 as used in the iPad can give them time to mature the line for the Macs.
The M3 Macs were released only 7 months ago.