was coded that way
do you realize that it is the case with every bug ever made? the program never spontaneously does something it was not programmed to. well... unless it is low level program, and there is some buffer overrun that places random data in its code memory - and even in that case, it's because it was coded in the way that allowed it to do so.