sweep change in direction

 From:  s7r83dg3
3329.1 
So when I sweep a triangle around a cube the triangle will change its direction why?