because after each impact it loses a fraction of its original energy, because it gets transfered to the floor. this is the reason that a perpetual motion machine is impossible. you cannot have infinite energy, because to perform a task, energy must be spent. hope i helped :3