King James Version (KJV)
41Then shall he say also unto them on the left hand, Depart from me, ye cursed, into everlasting fire, prepared for the devil and his angels:
42For I was an hungred, and ye gave me no meat: I was thirsty, and ye gave me no drink:
43I was a stranger, and ye took me not in: naked, and ye clothed me not: sick, and in prison, and ye visited me not.
44Then shall they also answer him, saying, Lord, when saw we thee an hungred, or athirst, or a stranger, or naked, or sick, or in prison, and did not minister unto thee?
45Then shall he answer them, saying, Verily I say unto you, Inasmuch as ye did it not to one of the least of these, ye did it not to me.
46And these shall go away into everlasting punishment: but the righteous into life eternal.
Note that the goats did nothing. They did nothing at all. They did not commit any evil sin. They did not jump on or beat up the innocent. They did not steal their food.
They simply did nothing at all.
Note also that they called Jesus, Lord.
Faith without works is dead, being alone. (James 2:17)