For the simple reason that you named a function named size. Don't do this. Type this at the command line:
If it shows a function that you created, change the name. And in the future, don't name things with names that already exist as useful tools in MATLAB.