It's about XML builder, not about API. It's not obvious here, but this will be interpreted to following XML:
`<leadRecord>
  ....
</leadRecord>
<leadRecord>
....
</leadRecord>
`
So, when we pass hash where value is array, it will be transformed to set of XML-elements with name equals to key and content of each element is separate value passed array.