In my experience, different workplaces can have very different cultures. Size of company matters a lot, as does industry, your role within the company, etc. If you don't like cutthroat coworkers, finding a smaller place, a less competitive industry (maybe not pure tech, but a tech job in another vertical), or being part of a more niche team can all help.
It might not be you, but the environment you and your coworkers were forced to work in. That sort of culture is meant to encourage high turnover instead of cohesive long term teams. Not all places are like that though.
Early in your career it's easier to get exploited as commodity labor. But if you hang in there, you can usually less find toxic places (and eventually nice places) over time. Or consider moving to a different field or country with better work culture, if that's possible.