Why did the UK say it will recognise a Palestinian state?

Why did the UK say it will recognise a Palestinian state?