You can't open the treasure box, so don't worry about it.
You need two things from the room to be able to leave.
Get the cotton bale from behind the treasure box.