Whats the point of error checking if godot just handles it

i have a webrtc connection, why should I check if its connected before getting packets if godot is just gonna check for me anyways?

ERR_FAIL_COND_V(get_ready_state() != STATE_OPEN, ERR_UNCONFIGURED);

Does this just seem like a waste of resource to anyone else? like these checks should only be in debug mode?