Lemon juice adds acidity to balance the heaviness of the oil and egg. It also helps stabilize the texture of the mayo to prevent it from splitting apart.