I agree: They are charging to set an expectation for consumers and app developers that quality mac apps should not be free.
Deleted comment
Apple probably should have made XCode free regardless, but his point struck me as the most likely reasoning behind Apple's decision to charge for it.