Why do some kids go to foster homes when theyhave grandparents?

Lots of reasons. Sometimes the grandparents are unable or unwilling - sometimes the granparents are unsuitable for some reason - drugs, alcohol, criminal activity.