It means he didn't hear what you are saying, so he want you to say again.
I think you mean "beg your pardon" which comes from early english times,as they would say to the judge, as in begging a pardon so that they will be free and no longer in jail