This is an omnicare shower, designed for care homes and hospitals for less mobile individuals.
The shower itself may be designed for surface cable entry and are designed so any water entry in the top passes straight through. (MAY be designed)
The installation is untidy, but not “dangerous”
Visually, anyway. Can’t say about what I can’t see.
It looks like this is a repair for a damaged shower.
If this is an area likely to be vandalised, then it could become unsafe, very quickly.