Section 319 CrPC springs out of the doctrine judex damnatur cum nocens absolvitur (Judge is condemned when guilty is acquitted). It is the duty of the court to do justice by punishing the real culprit. Where the investigating agency for any reason does not array one of the real culprits as an accused, the court is not powerless in calling the said accused to face trial.
For more details contact @Advocate Prakhar Gupta