The nitrogen atoms are attached to the aromatic ring, and this placement is the dominant factor. The conjugate acid formed by protonating either nitrogen atom would be expected to have a $\mathrm pK_\mathrm a$ similar to that of protonated aniline, not a protonated aliphatic amine.
We might expect this constant to be modified by the second nitrogen atom. Let us explore this.
The second nitrogen atom actually has two conflicting influences:
Electron-withdrawing inductive effect, which would decrease the conjugate acid $\mathrm pK_\mathrm a$ (stronger conjugate acid, weaker base). We expect this to be strongest in the ortho position as in the structure given in the original problem.
Electron-releasing mesomeric effect, which would increase the conjugate-acid $\mathrm pK_\mathrm a$ (weaker conjugate acid, stronger base). As with similar effects acting through a benzenoid ring, this would be stronger in the ortho and para positions, weaker in the meta position.
Wikipedia gives the following conjugate-acid $\mathrm pK_\mathrm a$ values:
Compared with the aniline base case, the ortho-diamine (matching the arrangement of nitrogen atoms in the original problem) shows very nearly the same acid-base balance, as the two effects described above appear to balance out. The meta arrangement gives a slightly stronger base, but it is the para isomer that shows a clearly stronger basic behavior: the mesomeric electron donation is relatively strong with this arrangement while the induction effect is minimal.