That might be true, but it's still insane that a LEGO brick costs more than a small microcontroller which requires like 1000x the engineering effort if not more.
At the production scale and yields both for low end microcontrollers and LEGO bricks, the costs are largely material-bound as engineering is amortized over tens of millions units