As others have said, there are no places in Yosemite to go off-roading so a 4x4 is not required. In winter when its snowing there may be times where a 4x4 would be useful as you would not be required to put chains on your tires, but I don't think that raises to the level of 'need'.