One cannot catch Covid-19 from a statue.Those taking part clearly weren't concerned by their vulnerability to the disease.
And from the protesters point of view, some issues are more important than the slight risk of catching a virus. When the cause is worthwhile protesters have often risked being shot or beaten to death.
.