How Cypress Handles the Clicks?

This is the HTML code

<div>
<li class="tabLblProperties"><a href="/pw/properties/properties_home.do">Properties</a></li>
</div>

The <a> tag is inside the <li> i.e class="tabLblProperties"
but writing the cypress code simply like this
cy.get('.tabLblProperties').click()
instead of
cy.get('.tabLblProperties a').click()

I am confused how this is working?
Beacuse the anchor tag is in the li the clickable is a tag not the li right? But it is working explain me how this is happening!