Compare what's given up, not how long it takes
For one cleaning, you give up 600 yuan and the cleaner gives up only 200, so the cleaning goes to him. Illustration is the other way round: an hour of it is worth 200 yuan in your hands and only 50 in his, so the illustration goes to you. You're better than him at both, but at cleaning you're only a little faster, while at illustration you're 4 times better. So you take the commissions and he cleans.
Both sides gain only when the price lands between the two costs
The cleaner could earn 200 yuan doing other work in those 4 hours; doing it yourself costs you 600. As long as the price lands between these two numbers, both sides gain. The two are 400 yuan apart. Paying 320 means you get 280 of it and he gets 120. If he asks 700, more than it costs you to do it yourself, you pick up the rag and do it yourself, and there's no deal. The price doesn't have to be money either; it can be a rate of one thing for another. Ricardo's two countries traded a batch of wine for a batch of cloth, and both used fewer workers than making everything themselves.
When the gap shrinks, so does the money to share
If the cleaner's hourly pay elsewhere rises to 150 yuan, then 4 hours of cleaning means giving up 600 yuan, the same as you. Now the most you'll pay is 600, and the least he'll take is 600; the 400 yuan in between has shrunk to zero.
Dividing up work only saves something when the work can be split apart, the results are easy to check, and the people can actually switch over. If handoffs and redoing work eat up the savings, or a skill has to be practiced every day to keep it, doing it yourself pays better. And more total output doesn't mean everyone is better off: a garment-factory worker who loses her job won't automatically find a new one just because cloth has become cheaper overall.