Tiles are ideal for a bathroom, toilet or shower area for a number of reasons. Your bathroom is a very damp place and you need a water resistant floor and wall covering which can get wet and dry quickly – unlike carpet and similar flooring or wall covering materials.
Bathroom tiles are highly durable and long lasting. They are easy to clean with water and a mop. They will typically not break or crack once installed properly, and unlike carpet or vinyl, bathroom floor tiles are unlikely to be damaged by excessive water or to harbour bacteria or to stain.
For wet rooms use tiles with a slip resistant rating (see here for more info) or a floor mosaic.