Why do platypuses lay eggs even though they are mammals?

They are definitely very unusual. I do know that they are mammals since make milk, as mammals got their name from mammary glands, not how their babies are born.
6 answers 6