Do some rails fold away when not in use?
Fold-up bathroom grab rails are often fitted next to the toilet pedestal.
Usually U-shaped, these rails have a spring loaded mechanism which allows them to lock in a vertical position against the wall when not in use.
This prevents any hindrance of other people who might use the same toilet.