Why is applicationDidResignActive run at program start?

Is this a bug?

It is interfering with my program flow.