The key to the puzzle is the fact that neither of the 13x5 "triangles" has the same area as its component parts.
The four figures (the yellow, red, blue and green shapes) total 32 units of area, but the triangles are 13 wide and 5 tall, which equals 32.5 units. The blue triangle has a ratio of 5:2, while the red triangle has the ratio 8:3, and these are not the same ratio. So the apparent combined hypotenuse in each figure is actually bent.
The amount of bending is around 1/28th of a unit, which is very difficult to see on the diagram of this puzzle, though just about possible.