The airline handles and pays for accommodations for crewmembers when they are on a trip. Many pilots do not live where they are based and choose to commute. Generally, if pilots need to travel and stay away from home when they are not on a trip, they are responsible for their own accommodations.