The kids think Spring Bonnie is a friend they can trust (seen in the novel trilogy, movie and implied in the games), however they'll attack any adult they think is dangerous (novel trilogy, fazbear frights). This is why they'll attack not just Michael but also all the other night guards, such as Phone Guy and Jeremy Fitzgerald, because they think they're dangerous.