It's not so much about weightloss, the pre-op diet is too shrink the fat in your liver, so it is safe for the surgeons to operate.
When you liver is large and fatty it bleeds more if knocked, so surgeons prefer you to shrink it before this kind of operation.