It's based on the concept that some crimes are so bad they can be prosecuted by the international community. Genocide, executions without a criminal trial, torture and other "crimes against humanity" are considered to have Universal Jurisdiction under international law.