I'm studying Fulton's book and in the chapter $6$, he gives a definition of variety. Before that he defines the affine variety in the chapter 2:
The definition of affine variety is

The definition of variety:

This definition of variety is a generalization of the concept of affine variety? I couldn't see why.
Thanks in advance