The cortado is served in a glass instead of a ceramic cup because it's a smaller drink. The ceramic cup is traditionally used for longer espresso and cappuccinos because it keeps the temperature of the drink high. However, the cortado is consumed quicker, so it doesn't need to stay as hot for long.
Practical reasons aside, most coffee shops choose a glass instead of a cup simply for aesthetics.