Yeah, this is the #1 thing people get wrong about STEM grad school. Not only is tuition 100% covered, you get a stipend that's usually 20-30k per year depending on local cost of living. Masters is completely covered too if you go in to a program that's expected to continue on to a PhD, and will as likely as not be covered even for a plain masters in some pure science fields.