They are painted to honor a biblical story about the crucifixion, in which the blood of Jesus was spilled upon some eggs, dyeing them red.
This tradition is connected to Orthodox Christianity, a religion practiced by 80% of the Romanian population.