It is the practice of the Latin Church. Eastern Catholic Churches actually mirror the Orthodox on this point, only a baptism performed by a Christian is recognized.
Can. 861 §1. The ordinary minister of baptism is a bishop, a presbyter, or a deacon, without prejudice to the prescript of can. 530, n. 1.
§2. When an ordinary minister is absent or impeded, a catechist or another person designated for this function by the local ordinary, or in a case of necessity any person with the right intention, confers baptism licitly. Pastors of souls, especially the pastor of a parish, are to be concerned that the Christian faithful are taught the correct way to baptize.
Canon 677 §1. Baptism is administered ordinarily by a priest; but, with due regard for particular law, the proper pastor of the person to be baptized, or another priest with the permission of the same pastor or the local hierarch, is competent for its administration, which permission, for a serious reason is lawfully presumed.
§2. In case of necessity, baptism can be administered by a deacon or, in his absence or if he is impeded, by another cleric, a member of an institute of consecrated life, or by any other Christian faithful; even by the mother or father, if another person is not available who knows how to baptize.