It just happened to me with my Pixel XL. I immediately powered it down also. It did not happen again. I download all my apps from the play store. I don't think it's a typical virus. I suspect some app might have found a way to the permission to play something in the background.