We only support attachments when exporting to filegdb or sqlite. Any other format, you will get only the features.
You can embed a url link (url) to the attachment in the main layer as a field and this will get exported.
Khaled Hassen
Online Feature Service Dev Lead