Composable commerce is compared to LEGO blocks due to its modularity, allowing businesses to independently develop, test, and update different parts of their e-commerce system, much like how LEGO blocks can be assembled and reassembled in various configurations.