mosekopt is not m file but a MATLAB MEX file. It is NOT a m file because it acts as a gateway to the native MOSEK library. This is simply the most convenient and efficient way for you to use a DLL or shared library like MOSEK from MATLAB.
The MOSEK frequently asked questions.
Version 5.0 (Revision 138).