Xmrig isnt working as it should be

I don’t believe that xmrig is a virus, but I don’t understand a few things. For example: I wasn’t mining but when I checked task manager, it was still running. With around 50 cpu for each process. (there were 2) If you could explain why that would be great

The miner likely just wasn’t successfully closed whenever the stop button was pressed.