When you check a bag with an airline, the airline is responsible for the bag even though they aren’t the only one that touches it. You may have seen the slips that TSA sometimes sticks into bags saying that they’ve opened and inspected it.
One woman shared her story of flying Delta from New York JFK to Los Angeles, only to discover that her bag had been opened and one of her packing cubes removed.