My interpretation of the phrase, with absolutely no authoritative backup, is that it relates to "doing for" someone in the sense of domestic service, as a valet or a lady's maid: "Robert was hired to do for Mr. Halt-Rodney." When one is "done for," all possible service has been rendered, further service is neither necessary nor possible.