Why did the British give up their right to mandate Palestine UN?

The United Nations did not exist when the British gave up their right to mandate Palestine. The UN was established in 1945, whereas the British Mandate for Palestine ended in 1948.
Copyright Wanderlust World © https://www.ynyoo.com