Cranberries need acidic soil, which is often found in peat bogs. They don't need to be in a flooded bog to grow. They are only flooded by commercial growers during harvest to float the fruits so that harvesting them is easier.