Lead paint, which used to be used before it was discovered to be toxic, has a sweet taste. To a young child or pet, it might taste like candy.
If you have lead paint in your house, don't just paint over it. First strip it completely and then re-paint.