In a mature tank,(as opposed to newly established) bacteria as Clive mention's,,, cling's to all hard surfaces in the tank (ie) glass,plant leaves,rock's,wood,substrate, inside wall's of canister filter,hoses,etc. and is hard to dislodge.
Giving the mechanical media a good rinse under tapwater...