Size of build directory difference between esp8266 and esp32

I noticed that the size of the Project/.pio/build directories can vary significantly between a esp8266 project and a esp32 based project.
esp8266 (modwifi): 7 Mbytes
esp32 (esp-wrover-kit): 97 Mbytes
How come this difference?
In the esp32 .pio/build directory two directories are dominant:
24M ./esp-wrover-kit/FrameworkArduino
17M ./esp-wrover-kit/libfb6 (Wifi)

Is there any way to avoid consuming this much disk space for every project, it seems not efficient?

Just leaned that the purpose of the “Clean” command in the Project Tasks is to remove that data.