Some have cell walls only for protection from herbivores.
Some have cell walls only for support.
Some closely resemble animals, which lack cell walls.
Some have cell walls only to control osmotic balance.
Their cell walls are composed of very different biochemicals.