The primary objectives of the government and the departments were national security and border security. They started by targeting those, which is understandable. Gathering information about Canadian citizens for the purpose of social program integrity is a different story. That is understandable, but it's more difficult than collecting information about Canadians for national security purposes.
As I said earlier, a few decades ago, the government did not collect information on the exit of its citizens to ensure the integrity of social programs. In any event, for the reasons I've explained, such purposes seem justified to me.