Its fluffy wool rubs together and builds a static charge. The more energy is charged, the more brightly the lightbulb at the tip of its tail glows.
Clothing made from Mareep’s fleece is easily charged with static electricity, so a special process is used on it.