If an assembly file is saved in STL format, it creates STL file for each component individually. To get rid of this situation, first save the whole assembly file as SLDPRT then save it as STL. Now, you will get the whole assembly as STL in one piece.