Your teacher possibly means by “monotonic” that the function is monotonic over any interval completely contained in the function's domain. But I dare say it's not standard terminology.
Of course the tangent function is not monotonic according to the definition
for every $x$ and $y$ in the domain of $f$, if $x<y$ then $f(x)<f(y)$
because $0<3\pi/4$, but $0=\tan0>\tan(3\pi/4)=-1$.
On the other hand, the tangent function is monotonic (increasing) over any interval contained in its domain, because the derivative is $1/\cos^2x$, which is everywhere positive (on the domain), so the mean value theorem applies on every interval inside the domain.
Or your teacher specified that the tangent function is monotonic over $(-\pi/2,\pi/2)$ (so an inverse of the restriction thereon can be defined) and you neglected to note the specification.