In the diagram on the right, the hydrogen atoms are on opposite sides of the double bond. They cannot rotate to the same side of the molecule, as (unlike with a single bond) double bonds prevent this happening.
See Geometric isomerism for more on this topic.
See also: