They also didn't just cut down on useless material. Power supplies are still large, but Apple has moved them out of the iMac in 2020.
The recent iMac redesign also makes it extremely awkward to connect external speakers using a cable, but the built-in speakers have received mixed reviews. Even that seems like a step back from the iMac G4.