Sometimes you HAVE to get off the plane, you can't stay on the plane if the crew has to leave for example. Sometimes while you think your layover will arrive and leave on the same physical plane it won't - and so in those cases of course you have to get off. It depends on the nature of the layover.