$\cos$ alternates as its input approaches larger and larger values in some regular way.
With the example $\cos(1/n)$, the input approaches $0$, so the alternating property just is not there.
But even more complicating, is that just because the input of $\cos$ approaches $\infty$, that is not enough to conclude you have a divergent sequence. If for example the input values, while getting larger, are approaching the same phase in the cosine cylce, then there will be a limit. Consider $\cos(1+n(2\pi+1/n^2))$. The argument gets very close to $1$ plus an integer multiple of $2\pi$, although that integer is larger with each step in $n$. But in the end, this sequence converges to $\cos(1)$.
To prove that $\cos(n/2)$ diverges is not as simple as you might like it to be. One approach is to show that $n/2$ will get very close to multiples of $2\pi$ infinitely many times, while also getting very close to multiples of $2\pi$ plus $\pi$ infinitely many times. So the sequence will have values close to $1$, and close to $-1$, infinitely many times.