Only the force component along the motion does work. At θ = 90° the rope pulls straight up — the crate gains no energy from it.