There are a few reasons that may cause hyperactivity in pups and older dogs
Hyperactivity from food - just like kids, dogs can be affected by food
Boredom - Possibly being left on their own too long or just an intelligent dog that needs mental stimualtion, being kept in during it's critical socialisation period for a puppy can result in a hyper pup as they are just not getting enough input to tire their brains out.
Lack of Exercise - Being afraid to let your dog off lead can result in a hyper dog, see a dog trainer. Constantly being on lead is boring and the wrong kind of exercise to tire your dog. It's also in contravention of the Animal Welfare Bill.
Overstimulation - Pups need to rest and sleep, a busy household with young children (or adults) that never leaving the pup alone can lead to hyperactivity and attention seeking behaviour.
A combination of some or all of the above reasons - This does happen and can be very difficult to deal with the longer it goes on for the harder it is to correct the behaviour.