You may not have inherited great wealth directly, but it's a fair guess that you "inherited" some or all of the following:
* Parents who pushed you to focus on your schoolwork.
* Parents who owned a computer, or bought a computer specifically for their kids' education.
* Parents who lived in a house with consistent water, electricity and internet service.
* Parents who made sure you got glasses if you needed them, so you could see the board in class.
* Parents who understood the importance of a college education, and who helped you apply to colleges (real colleges, not for-profit scam schools), took you on college visits, filled out financial aid paperwork, contributed to your tuition.
* A relatively high IQ and/or an analytic mindset.
I'm sure you've worked hard, but don't discount the advantages you were born with, and don't fall victim to the Just World Fallacy. This planet is full of people who worked twice as hard as you and got nowhere.