On a more philosophical level, large llm based models are trained with vast human generated online material. One can say: “AI is an inconvenient mirror of mankind”.
Guardrails for mankind are the laws instated by the different governments to create checks and balances and institutions that enforce laws. Everywhere now and then criminals pop up that break laws. We should expect the same from AI as it learned the tricks from us.