There are many advantages, if an organism reproduces through spores.
Advantages of spore formation:
Large numbers of spores are produced in one sporangium.
Spores are distributed easily by air to far-off places to avoid competition at one
place.
Spores are covered by thick walls to prevent dehydration under unfavourable
conditions.