In school, after finishing a course you receive a grade (A, B, C, D, F=fail). The grades A, B, C, D are "passing grades". "Giving someone a pass" means giving them a passing grade, even if they didn't do a great job and maybe they really deserve a failing grade. More generally, the expression is used to mean overlooking poor performance.