Why did one of the levels get canceled?

The levels work according to the One-Cancels-Other logic. In case Take Profit triggers-->Position closes--->Stop Loss gets canceled and, vice versa,  If the position is closed at the Stop Loss-->Take Profit will be canceled.