I wanted to explain a bit about the domains of these functions, rather than why they have the values they do, since that seems to be the confusion here.
Few instructors emphasize this until you get to a higher level of math, but it is important to know that a function is two things: a domain, and the "rule" which operates on that domain. In this case, when we say $f(x)=\ln(x-1)$, it is implied that the domain of $f$ is wherever the function makes sense. In this case, the domain is $(1,\infty)$. Thus, when we differentiate $f$, we want a function who gives the correct derivative at every point on the domain. Since $\frac{1}{x-1}$ works for every value in $(1,\infty)$, we are good to go. However, in this case, the function $f'(x)=\frac{1}{x-1}$ actually still has domain $(1,\infty)$, even though this function could make sense elsewhere. The reason the domain is only $(1,\infty)$ is because the purpose of $f'$ is to give the derivative of $f$, and $f$ doesn't even exist on $(-\infty ,1]$.
Now suppose we start with the function $f(x)=\frac{1}{x-1}$. Since it isn't otherwise specified, we assume that the domain is the largest possible one. In this case, the domain of $f$ is $(-\infty,1)\cup(1,\infty)$, otherwise written simply as $x\neq 1$. If we want to find an antiderivative of $f$, we need to find one that makes sense on the whole domain. If we say that the antiderivative is $F(x)=\ln(x-1)$, then this function only exists on part of the domain we want. Thus, by using $F(x)=\ln|x-1|$, we have an antiderivative on the entire domain of $f$.