Botanical gardens serve as ex-situ conservation sites, maintaining living collections of plant species outside their natural habitats. This preserves genetic diversity (germplasm) for research, education, and potential reintroduction. They do not provide natural habitat for wild plants (that's in-situ conservation), and while they may have tropical plants and recreational areas, these are not their 'most important' scientific function.