Because most relevant locked chests have keys and the default left click behaviour is to attempt to open it with a key.