They had to make their clothes out of material that they could find.
Flax grows everywhere in New Zealand so the Maori would make things out of it.
This is some flax that has been woven into a long piece that can wrapped around you. And then you have clothes. Clever isn't it? Maori were very good at weaving with flax.