For example, historically, The most famous proof of the irrationality of √2 is a proof by contradiction. It assumes √2 is rational and derives a contradiction. This proof is elegant but doesn't offer much insight into why √2 is irrational. Later mathematicians developed direct proofs of the irrationality of √2. These proofs often use properties of continued fractions, providing a more intuitive understanding of why √2 cannot be expressed as a fraction.
This is an excellent example to discuss why I don't like proof by contradiction. It is neither necessary to phrase the classic proof as a proof by contradiction, nor is it necessary to learn anything about continued fractions to write down a direct proof.
Here is a proof equivalent to the classic proof but involving no contradiction: by definition, what it means for a number to be irrational is that it is not equal to any rational number, so we will just prove directly that if $\frac{p}{q}$ is a rational number then it is not equal to $\sqrt{2}$. In fact we will prove the slightly stronger statement that $\frac{p^2}{q^2}$ is not equal to $2$, or equivalently that $p^2$ is not equal to $2q^2$.
The argument is simple: in words, $2$ must divide both the numerator and denominator an even number of times, so it must also divide their quotient an even number of times, but $2$ divides itself only once. In symbols, write $\nu_2(n)$ for the $2$-adic valuation, which is the number of times $2$ divides an integer $n$. Then $\nu_2(mn) = \nu_2(m) + \nu_2(n)$. It follows that $\nu_2(p^2)$ is even, but $\nu_2(2q^2)$ is odd, so
$$p^2 \neq 2q^2$$
for any integers $p, q$. This argument generalizes immediately to the following more general result:
If $n$ is a positive integer such that there exists a prime $p$ such that $\nu_p(n)$ is not divisible by $k$, then $\sqrt[k]{n}$ is irrational. Equivalently, $\sqrt[k]{n}$ is rational iff it is an integer.
Note that once $k \ge 3$ continued fractions no longer offer a route to proving this.
Although it is not technically necessary to state the proof, a natural way to rephrase the proof is the following: the $2$-adic valuation actually naturally extends to rational numbers, by declaring that $\nu_2 \left( \frac{p}{q} \right) = \nu_2(p) - \nu_2(q)$, and by the "logarithmic" property above this is well-defined. Then $\nu_2 \left( \frac{p^2}{q^2} \right)$ is even (possibly negative) but $\nu_2(2) = 1$.
If you stare at this argument a little more you might notice something else: what this argument really appears to be saying is that $\sqrt{2}$ itself has a $2$-adic valuation, namely $\frac{1}{2}$, which is not the $2$-adic valuation of any rational. This is true! And generalizing this leads to some rich ideas in algebraic number theory.
So, what we've learned from the direct argument is that $\sqrt{2}$ is irrational because it has a property, namely having a fractional $2$-adic valuation, or informally "being divisible by $2$ a fractional number of times," that no rational number has. This is obscured by phrasing the proof as a proof by contradiction, because in a proof by contradiction you don't know whether any of the things you're proving are true! In a direct proof you are forced to write down only true statements so you learn much more along the way.