You can help your friend by telling his situation to the teachers so they will not punish him. You can also pick him up from his house so that he will reach school on time.
Your friend should wake up early in the morning to help his grand parents. He can also help them after coming from school. He can also ask his parents to come there to help his grandparents.