This was not a move by Biden to position Kamala for a loss, but he certainly did not want Pelosi and the Democratic establishment to gloat on a win. Which is why he immediately endorsed Kamala for the presidency, right after announcing he was stepping down from the race.
Pelosi suggested there should have been an open primary after Biden dropped out. But Biden's endorsement ensured that they could not backtrack from Harris.