Subletting isn't an agency relationship. It's not like tenants provide a service to landlords by occupying the property as well as paying rent.
Also, the law around real property including leases is different and more involved than straightforward contractual relationships.