Exactly, if whoever did that wiring did not use a 240v double pole circuit breaker at the source and instead used 2 single pole 120v circuit breakers you could have one breaker tripped and one breaker live supplying 120v.
Which is why that is against code.
Which is why that is against code.