Why are floods sometimes considered good for agriculture?

it can give the plants water in countries that are usually dry. or poor countries where they cant get water themselves.