The main purpose is protection. The lipid bilayer protects the cell from viruses and other threats to the cell. It also maintains homeostasis within the cell by monitoring the amount of substances the enter or exit the cell.
Explanation: if the parents are both RB, one would end up red, one would end up blue, and 2 would be heterozygous and end up presenting the incompletely dominant color of purple.