tree based directory structure stuff is available on gitlab’s free tier — so are all the permissions inheritance for groups etc.
so, while you’re technically right, these features are apparently paywalled heavily on github.
ime you get more features on gitlab for the same price (or less). i switched fully two years ago and im not going back.