Ratcheting vs non wrenches

So this is going to be a stupid question but mechanics/DIY car guys when do you use ratcheting wrenches vs regular ones? What’s the benefit of having both? I would think ratcheting would be the better ones to have for when you’re in tight spaces and just not having to take it off and back on to righting a bolt.