Unknown hoses and a black box in the trunk

Found these two hoses in my trunk while looking for fuel smell, the larger hose I believe is the sunroof drain but the smaller hose doesn’t attach to anything? And what is the back plast box with a flap on the front do?

I believe the sunroof drains are hidden, if that small hose is from the fuel filler thenI think it ‘may’ connect to the larger hose?
No longer have a ‘40 to check so going on memory.