They are acting immorally by restricting what users can do with devices they own. They are using their market power to coerce users into using their services.
The rules were made by representatives voluntarily elected by the people and are an expression of their free will.