Not discounting the potential for dogmatism amongst all ideologues; the state becomes the source of immorality in libertarianism (due to its coercive power) and an adoption of philosophical underpinnings that theoretically dictate historical origination and development. Perhaps useful in a debating exercise but has the potential to reduce complex questions on where do states come from, how do they form and why do they persist. They do not come into existence in the same way and in some geographical regions the state has never come into existence at all.
Bit if one were to pinpoint the most successful institution that humanity has brought about, then the state has a strong claim to be number one. It is universal, adopted in most civilisations (though underpinned by the city and/or the court) and adaptable enough to survive even the most severe of crises. The Byzantine state survived the Dark Age, changed and reduced, but still in existence.
Is coercion the key test for the success of the state? Other institutions are also coercive. Is the state successful because it acquires a monopoly on violence. State structures continue to exist and tend to emerge from polities with overlapping power centres, lacking a monopoly in violence. These tests are incomplete if viewed through a historical prism.
This short piece does not explain why states exist and why they contine to be successful; the ability to seize assets for collective purposes is a key part of that story; its immorality clear.
Libertarianism provides a key perspective on the morality of state power and action. This does not tell us why states emerge, exist and adapt.