It is just the same with your eye - and camera response curves are optimized to be similar to your eye.
There is metamerism - many spectral distributions will look the same to your eye as well as to a camera. See https://en.m.wikipedia.org/wiki/Metamerism_(color)