Why is it necessary to filter lime water?

The limewater is filtered so that the undissolved particles of calcium hydroxide do not make the limewater solution cloudy even before it is used to test for carbon dioxide gas. By filtering it, the limewater solution is made clear and colorless, which makes it easier to notice it becoming cloudier when carbon dioxide gas is bubbled through it.