I would strongly assume it is spelled out within the interline agreements that the final carrier is responsible.
This really is a consumer friendly rule. It stops what would otherwise be the universal finger-pointing. It also allows the pax to deal with the "local" carrier.