Plants need soil?

No, but they do need the nutrients commonly found in the soil, and nitrogen fixing soil bacteria are extremely beneficial, though not technically necesary, to plants.