Illustrator is used to make vector graphic like logos, digital characters, game objects etc. Maybe in simple works, you can't find any different between it and Photoshop.
It's a vector based software. It's used for designing purpose. If you design a small logo in Illustrator and you want to increase its size, you can do it and it won't get pixelated (raster).