Many reasons to put a plant in a pot or bag rather then directly in the ground.
so the plant can be easily moved. ie. inside durring rainy or cold nights, when something fishy is going on.
so the water and nutes can be evenly distributed.
it mainly depends on your grow.
some have to have them in pots so they can be easily moved because of their climate.