Because even a store that operates day and night may need to be closed at some point, either for a holiday, for a makeover, or even for cleaning. And there's another: the doors, by manufacturing standard, already come with locks. No one makes lockless doors for 24-hour stores.