What if we build a huge sealed bottle garden and send to Mars, can humans live in it!
Second, the plants chosen for bottle gardens are very sturdy and tolerant of non-optimal environments. Humans are a lot more sensitive.
If you're interested in the topic, read "The Martian" by Any Weird, a very well-researched SF story about an astronaut who gets left behind during a Mars mission and has to survive for several years using equipment that was only specced to sustain the expedition for a month.