Is it because their parents weren’t/aren’t righteous?
Psalms 37:25
ESV - 25 I have been young, and now am old, yet I have not seen the righteous forsaken or his children begging for bread.
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.