The bad thing about poking your head up and shooting a torpedo at them is the fact that a good deck watch on the enemy ship can follow a torpedo wake to the source.
And since underwater maneuverability is limited (particularly in early boats), you might be sending them one hell of a hint as to where you are.