They will usually “buffer” all the connections to the Raspberry Pi, which means the Raspberry Pi is protected from anything untoward occurring on the expansion board. For example, a short circuit across an output might damage
the expansion board, but no harm will befall your precious Pi.