Ricotta is made from dairy whey, which gives it a smooth and delicate texture, while cottage cheese is made from milk, giving it a grainy texture with larger curds that aren't as thick and creamy. When put into a lasagna, cottage cheese can remain lumpy and grainy, which is not ideal for a filling that's supposed to be smooth and creamy.