Currently global warming is increasing significantly around the world and become one of the typical issues for sustainability. In this connection, many sectors are transforming towards sustainable solutions. Integration of renewable energy (RE) is one such adaption in electrical power systems, by which the burden on conventional plants as well as their greenhouse gas (GHG) emission can be reduced significantly. However, due to radial structure, electrical distribution networks (EDNs) may not support for RE integration inappropriately. There are numerous methods have been introduced on optimal allocation of RE sources in radial distribution networks (RDNs), but not highly focused on maximizing their RE hosting capacity (HC). In this paper, a recent and efficient meta-heuristic algorithm, hunter-prey optimization (HPO) is introduced for finding the optimal locations and sizes of photovoltaic (PV) systems in RDNs. In addition to the loss minimization and voltage profile improvement, maximization of PV hosting capacity (HC) is focused as a major objective. Simulation results are done on IEEE 33-bus RDNs for different scenarios. The computational efficiency of proposed HPO is compared with other recent algorithms and it is observed that the results of HPO are better than other compared methods in terms of global optima. In addition, the enhanced HC of PV systems in RDNs is ensured improved performance in terms of reduced grid-dependency, GHG emission and distribution losses along with improved voltage profile.