Paragraph alignment works on the entire paragraph - you can't pick individual lines in a paragraph to align that without impacting all the other lines in that paragraph.
So the first thing is to check that your 'line' is a entire paragraph and not just a line within a larger paragraph.
If that is the case, then you may be dealing with a style that is set to 'automatically update'. See this to learn more
Whole Document Reformatted