They could have just potted it. This is a standard manufacturing process that's been around since at least the early 20th century.
https://en.wikipedia.org/wiki/Potting_%28electronics%29