Because printers must be as cheap as possible and require a recurring revinue stream, which includes malware. Sorry, "valuable special offers".
It costs more money to make a printer with good firmware, and you're more likely to throw away a buggy printer and buy a new one with new special ink cartridges.