Although trees generally conserve water much better than animals, you need to support the entire almond tree for a few almonds whereas the cow's entire body will be used for a variety of products. The water usage of the agricultural infrastructure supporting the cow may be higher in absolute numbers but a single cow is literally hundreds or thousands of pounds of useful meat and bone after it is no longer useful as a milking cow.