The journals are often behind paywalls, though more and more research is published open access.
Regardless, researchers share their research with other researchers for free and a huge amount of paywalled papers are actually just available for free on the authors' websites.