It is actually not stupid. Nothing stops them except a liability for a hefty fine if they are cought. In same manner as nothing stops criminal from stealing your car. But there might be a jail sentance that deters him from doing it. Some cars will be stolen, some criminals cought and jailed.
Sure, car has locks. It is preventive measure. Same as not uploading your personal data/pictures/... to "public" servers.