There are many posts and videos reporting that a cow hid her calves because she knew farmers would take her away.
But according to this site,
Most cows will hide their newborn for the first couple of days away from the remainder of the herd until they are strong enough to interact with the other members of the herd. They will ‘plant’ them in tufts of long grass or under a shady tree coming back to feed them a drink of milk when necessary.
This indicates that the hiding of calves is a generic response which doesn't have anything to do with them remembering that humans took their last calf away.
Is there any evidence that cows sometimes anticipate humans harming their calves and take steps to prevent that? (like hiding their calves)