God knew that Cain had killed Abel, but he asked Cain this question so that Cain would have to answer.
"I am not my brother's keeper!" or "You know that taking care of my brother is not my job!"