Grooves

Tires of a truck have grooves where as tires of a formula racing car are smooth can you think of a reason?
What is the reason why tires have grooves? The grooves in the rubber are designed to allow water to be expelled from beneath the tire and prevent hydr...