Why is it hood/trunk in the US and bonnet/boot in the UK?

It's interesting how these terms differ - I wonder which came first.

Why is it hood/trunk in the US and bonnet/boot in the UK?
Post Opinion