FWIW almost every printer I’ve owned has had a similar connector situation (creality, SOVOL, an ancient Canadian local brand). Usually hot glue, but I’ve seen silicone before.
I understood that this was more for ensuring that the connectors don’t come loose during shipping.