As an airline there are regulatory obligations on British Airways to maintain a record of passenger information on our aircraft.
The laws of certain countries, such as the UK and USA, require airlines to provide certain passenger information to the border and immigration authorities.