Consider the Riemann $\zeta$ function. We know that $\zeta(2n)$ is a rational multiple of $\pi^{2n}$ (in particular is transcendental). We also know that $\zeta(3)$ is irrational, and we expect $\zeta(n)$ to be irrational (if not even transcendental) for every $n\in\mathbb{N}$, or at least I would be amazed if - say - $\zeta(5)$ turned out to be rational.
Are there known instances of rational numbers appearing where we would not have expected them?
Of course the notion of "expectation" here is very subjective, so this is a soft question just out of curiosity, since I have the feeling that usually (in my limited experience always) complicated expressions yield irrational ($\mathbb{C}-\mathbb{Q}$) numbers.
As a non-example, we have the series $\sum_{n=1}^\infty 2^{-n}=1$. A series is complicated enough (compared to say a finite arithmetic expression), but of course here we have the explicit formula for geometric series so the resulting $1$ is not really a big surprise.
(1). If $f:[0,1]\to \mathbb R$ is continuous with $f(0)=f(1)$ and $n\in \mathbb N$ then $\exists x\in [0,1-1/n]\;(f(x)=f(x+1/n)\;).$ (The theorem of the horizontal chord.) But if $y\in (0,1)$ and $y$ is not the reciprocal of a natural number then there exists a continuous $f:[0,1]\to \mathbb R$ with $f(0)=f(1)$ such that $\forall x\in [0,1-y]\;(f(x)\ne f(x+y)\;).$
(2). In any triangle, the orthocenter $O$, the barycenter $B$, and the circumcenter $C$ not only are collinear but $OB:BC=1:2$ (Euler, 1765). If this was "obvious" or "expected" it would likely have been known about 20 centuries earlier in Greece.