US colleges offer free food to students who ignore their phones in class

Couldn’t you just keep it locked all night and then get free food for nothing?