Custom junction objects can’t have detail objects. That is, a custom junction object can’t become the master object in a multilevel master-detail relationship.
This is a limitation from Salesforce.
Check this for more information
https://help.salesforce.com/articleView?id=relationships_considerations.htm&type=0