He went into the house of God and took the sacred loaves of bread that only priests were supposed to eat. He not only ate some himself, but even gave some to his followers.”
The only bread the priest had was the sacred bread that he had taken from the place of worship after putting out the fresh loaves. So he gave it to David.