When and why the British acquired protectorates along the Arabian side of the Gulf?

https://en.wikipedia.org/wiki/Persian_Gulf_Residency