In Pakistan, a mother can lose custody of her child through legal proceedings in cases where it is determined by the court that it is in the best interest of the child. This can happen due to factors such as neglect, abuse, or inability to provide a safe and stable environment for the child.