There was a story written by (IRRC?) Stanisław Lem: technology went to absurd level of complexity, yet was so important to daily lives that the species' survival depended on it. The knowledge of how everything worked has been long forgotten; the maintainers would occasionally fix something by applying duct tape or prayers.
Sufficiently advanced technology is indistinguishable from magic.
We're basically headed in that direction.
This later evolved into the 40k universe