Drama and politics are involved when there is people. You never have drama or politics between machines or forces of nature. As a consequence, on average, any title of manager that means you actually manage people will have more politics and drama then a job without managing capacity.
While you can experience drama and politics as a developer, it's not your job to handle that. You can punt it to somebody who is a manager.
Politics itself is a function of hierarchy. If you work in a small company and your boss is the owner, there is no politics. You will never be the boss and the boss has nothing to prove to anybody. The decisions the boss makes are automatically for the good of the company, because their personal and professional goals are pretty much aligned. If you work in a big mega corporation, with your boss being the "senior vice assistant chief executive" guy who wants to become the "senior assistant chief executive", then there will be politics. There will be agendas. People will act in their own interest instead of their employers interest.