I think this is a strategic AI bug, they are deeply engaged in china in the screenshot, surely starting another war should be a low priority until the current war is complete?
I have seen them declare war on the US when they have been practically driven off the Asian mainland (naval invasions into southern China driven back, nearly pushed to the tip of the Korean peninsula and being driven back in British Raj) so the AI is clearly not taking the current situation into account.