[iOS] Selecting element by accessibility id. How does it work?

I have two elements. One is an UILabel with Value: Password. The other is an UITextField with Title: Password (although I set the accessibility label to be Password don’t know what that is all about). The info is taken from the accessibility tool.

I want to click the password text field and so I do driver.FindElementByAccessibilityId("Password").Click(); which apparently clicks the label and not the field.

Does FindElementByAccessibilityId work by finding an element with any of its accessibility attributes equal to Password? In my case because the label is before the text field and that is why it decides to click it.

Is this a bug or is it as intended?