On the origin of gas-rich meteorites