Naive answer: because there are two cases here: 1) creating a duplicate/filtered resource catalog with new resources (if line 499 is true), or 2) creating a ral catalog from a resource catalog (if not).

Am I missing your point?  I don't totally get the use cases for to_resource (specifically the one in application/master.rb) so I could easily be missing something big here.