It is often caused by dirt or rust on the door hinges.
Shower door hinge noise.
The door fails to latch properly when it is closed.
A slippery floor can easily cause you to fall and sustain serious injuries.
A squeaky noise is a common problem on shower doors.
Let us know what other questions you have about shower doors or other.
More often it means the hinge is dirty rusty or corroded so that the hinge does not move freely.
If you wish to match the hinges to the door color 1 see if they sell hinge kits in your chosen color they account for spacing when they paint to prevent squeaks or 2 take the hinge apart apply a thin coat of oil based paint it will last longer than acrylic and lubricate well.
When the shower door squeaks at the hinge it may mean the hinge is loose.
If the hinge is not fixed the door may not latch properly.