The same training that makes AI models useful and helpful can also make them sycophantic.