Buddhism is based on the precept 'forbidding the taking of life,' and this was adopted by Shinto as a result of the syncretism of Shinto and Buddhism in Japan.
仏教の戒律である「殺生戒」を元とし、日本では神仏習合によって神道にも取り入れられた。