Tire treads provide channels to channel away water, maintaining contact with the road. Without treads, tires would hydroplane on wet surfaces - sliding on a layer of water.
The pattern is engineered for different conditions - racing tires, off-road tires, all-season tires.