I think it's less that 12 or 24 is more efficient than mains, but rather that not having to convert DC -> AC -> DC and also not having to step the voltage up and back down is more efficient. That's 2x 'rounds' of conversion you don't have to do anymore.
(though I'm not an electrician, I'm just guessing)