Lending profit vs withdraw amount

I’ve lent some DOC and can see the profit number rising daily.

However when i try to withdraw, the max amount withdrawable is significantly less than what the lent+profit amount is. It seems to be half the profit less.

Why is this?