CNBC's Jim Cramer said Wednesday that Federal Reserve Chair Janet Yellen took a more dovish-than-expected stance for one specific reason.

"She seems to be concerned about … the working person. She recognizes the rents have gone up a lot year over year, she recognizes that health care has gone up year over year for the $40,000 [a year] person [and] she recognizes that gasoline prices are not offsetting that," Cramer said on "Squawk on the Street."