Airlines can make any changes to their trading T'S&C's that they want as long as they are legal and fair.
Train companies impose surcharges when people self-upgrade and so can airlines if they chose to. Train managers tell passengers that they can object in writing if they feel that the imposition of a charge is unfair. That is what makes the condition of carriage fair ie the ability to appeal.
It isn't complicated.