Earth's magnetic north pole and geographical north pole are not at the same place but near by.
And magnetic compass needle always point towards the magnetic north pole of the earth. When compass is at the earth geographical north pole, it points toward the north pole (magnetic) therefore making some angle with geo. north pole and this angle is called angle of declination.