 Jesus did this as a proof, this text says, as a proof for them that they were asking in a sense, if I'm right in my theory, that they sent this leper to debunk Jesus. They were asking Jesus to do something that he was not supposed to do according to the law.