When creating a key pair using gpg
it asks me for an expiration date:
$ gpg --gen-key
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Why is this needed and what are the advantages of having an expiration date?