My educated speculation is that builds are particularly sensitive to I/O latency (read this file, and based on its contents, read this other file). For that kind of workload, the directly attached NVME that you get in a laptop will beat the pants off the network attached disk that you get in a budget friendly cloud instance.