Engine running, although ignition is off

Hi, everybody, I got the Sherco today. It’s funny to get the engine running without the ignition key in it. I noticed this because I wanted to turn off the engine by turning the ignition key, but the AM6 turned on nicely. Do you know that? Was it simply wrongly wired or is something wrong with the ignition?