Muslim law was used because the Mughal Empire had made it the criminal code across India, it was simpler to keep using the existing system, and it helped make British rule seem more legitimate.