It was also common to put colorful tape on so you could see how close the valence was to the ground as the car went by. The lower you could get it, the more downforce the car would have (or so the commentators would say). I don't know if that was the reason the tape was put there or just a handy side effect of using it
That will likely be the only reason.
There is obviously a performance advantage or else otherwise they would not do it.
In making that area under the car as low pressure as possible, this creates a suck-pull force a.k.a. "downforce".
As this is a presenting surface at 90° to the direction of travel, then smooth airflow is mostly irrelevant.
This is different from the tape rail infringement which Hendrick tried to get away with earlier this year. I suspect that that was about creating useful spin vortex shapes; this is not that.