Is it fair to assume that you mean "unlatched" rather than "unlocked"? I.e. it comes free of the latch and would open if you lifted it without touching the handle? If so, I would think that it's probably a slight misalignment of the latch, and that it is not fully closing, so a bit of bouncing about as you go along frees it?
If you actually mean "unlocked" I don't know - by default cars over here are not (as far as I can judge from mine) set to lock themselves as you drive along - but I know that an i3 can be configured to do that (and it may be the default setting in some countries).