@ShubhamBajpai I think this is by design as Microsoft recommends using flat topology/architecture instead of classic/top-down site topology. I observed that I can apply site templates to site collections only.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.