This is a feature from various games like Titan quest.
When you are looking at an equip-able item in inventory the corresponding equipped item(s) would be display as well for easier item comparison (some games would even highlight the differences but that's probably beyond Underrail without a major code overhaul).