This is because you can actually factor twice. X squared minus four is a difference of perfect squares, meaning you can factor it to (x-2)(x+2). The 2 in front is from the first factoring.