A relative maximum (minimum) is the greatest (smallest) in its neighborhood but an absolute maximum (minimum) is the greatest (smallest) anywhere (in the domain). For example:
In the picture we see that the function has $3$ relative minima and an absolute minimum, which is smallest of all relative minima. It also has $2$ relative maxima, but it has no absolute maximum, since at the boundaries the function goes to $+\infty$.
In general, to find an absolute extrema, besides the critical points we have to check also the poles of the function and the boundaries of its domain.