Compression wood forms on the side of the plant that is under compression, thereby lengthening/straightening the bend.
Wood compresses on the side under pressure, causing a bend that lengthens or straightens the wood.