In general, number systems exist because they usefully quantify things.
We invent the extended real numbers, which includes two extra numbers, $+\infty$ and $-\infty$, because they are fantastically useful for doing calculus! For example, it lets us understand
$$ \lim_{x \to +\infty} \frac{x^2 + 1}{x + 1} = +\infty $$
as saying that the function is converging to $+\infty$, as $x$ approaches $+\infty$.
It may be odd to think of this as a convergent limit, but with a little experience it will be quite natural. This lets us do other things; e.g. we can continuously extend the arctangent function by setting $\tan^{-1}(+\infty) = \pi/2$ and $\tan^{-1}(-\infty) = -\pi/2$. The arctangent is continuous at infinity, which lets us write the arctangent of a limit as the limit of the arctangent: e.g.
$$ \lim_{x \to +\infty} \tan^{-1} \left( \frac{x^2 + 1}{x + 1} \right) = \tan^{-1}(+\infty) = \frac{\pi}{2} $$
This example suggests something important: to get the most use out of our new numbers $\pm \infty$, we want the functions we use -- such as arithmetic -- to be continuous, so that we can reason as above.
In particular, we would like division to be continuous: e.g.
$$ \lim_{(x,y) \to (+\infty, +\infty)} \frac{x}{y} = \frac{+\infty}{+\infty} $$
Unfortunately, the limit on the left hand side doesn't exist, which means that we can't extend division to be continuous at $(+\infty)/(+\infty)$. Because of this, by far the most convenient thing to do is to define division so that this quotient is undefined.
If you're not familiar with multivariable calculus yet, the fact the limit above doesn't exist is a consequence of the fact that
$$ \lim_{t \to +\infty} \frac{t^2}{t} \neq \lim_{t \to +\infty} \frac{t}{t} $$
That said, if you were not considering division in general, but were instead considering the specific function defined by
$$ f(x) = \frac{x}{x} $$
Then we can continuously extend $f$ to $+\infty$ just like we did with the arctangent function, by setting $f(+\infty) = 1$. This is very analogous to the fact we like to extend $f$ so that $f(0) = 1$ as well.