As the tangent function approaches 90 degrees (or pi / 2) it keeps increasing exponentially. The tangent function =opposite / adjacent.
As theta approaches 90 degrees, you can see the opposite side has to become longer and longer. The tangent function is approaching infinity (but mathematicians don't like saying that) so it is technically "undefined".