why and when you whip eggs?

For scrambled eggs or an omelet? To blend the albumin with the yolk? To achieve a more homogeneous consistency?