The flow element which is bounded by streamlines is called as a Streamtube. The size of streamtubes can vary, they can be defined in different sizes, and the only constraint is that the bounding surface of a Streamtube should be made up of streamlines. As the name denotes, it’s a tube, which indicates that flow is possible only through the tube and not across the tube. This is because of the way in which a Streamtube is defined.

click to enlarge
The streamtube is bounded by streamlines and the velocity of flow at any point on a streamline is tangential to that streamline. So, there is no possibility of any flow across the surface of a streamtube. Thus, a streamtube behaves as a tube indeed. The definition of the streamtube is particularly useful for deriving a continuity equation for fluid flow.
For deriving the continuity equation, consider an elemental streamtube. Since there is no mass flow across the surface of the streamtube, by the law of conservation of mass, we can say mass entering the streamtube per second is equal to the mass leaving the tube per second. This can be integrated and written for a finite streamtube with average values at the entrance and exit of the streamtube. For incompressible steady flow the equation for conservation of mass is reduced to the continuity equation.