Could be a couple reasons.
One, if it is a python script that you are clicking on, there is no export option as it is already a .py file. Can just choose "Edit" and will get the source.
If it is a model that you are clicking on, it will be greyed out as well. however, if you click "Edit" on the model, then under the file menu, you should be able to export it.
R_