A. It protects the seed until it matures.
This is similar to what happens with fruits, as well. Plants will often times produce a “fruiting body” which is a swelled up version of their reproductive organs. This is what we know as fruit. The fruit “carpel body” encases seeds more efficiently.