When cows have grazed enough, they lie down to ruminate.
This is happens every day, so indeed they will be seen lying down before a rain shower. But even more often when it does not shower.