If a Pokemon uses roost, it lands andrecovers health. This temporarily makes it lose its flying type. if the Pokemon is just flying type it will change to normal type for 1 turn when it is landed. Recover only heals 50 % of your HP. The links will help explain.
Link for Roost.
Link for Recover.