Cheat engine changes data stored in system memory by the game to affect the game in some ways.
A virus works in the same way by changing data of an other program.
Cheat engine is not a virus but anti virus software can't tell the difference and will think it's a virus unless/untill the devs tell it that it's ok.