God, through Moses, warned Israel that all the firstborn in the land of Egypt shall die (Exodus 11:5), and that would have included Israelite firstborn, too. The threat against the Israelites was real, and they had to prove to God, through the sign of the blood on the doorposts, that they wanted to be separate from the Egyptians. Without the blood, the Israelite firstborn would have shared in the same judgment as the Egyptian firstborn.
The blood on the doorposts represents the life of the lamb given to redeem those within each participating house (see Exodus 13:13-16; 34:19-20), not to symbolize forgiveness. God does not draw attention to the Israelites' sins in His Passover instructions, even though the Israelites were sinning - grievously, in fact. Through Ezekiel, God says that the Israelites as a whole were unabashed idolaters at this time, and God nearly destroyed them, then and there:
The Israelites not only had idols in Egypt, as this says, but other passages show that they were still carrying them in the wilderness. This means that some Israelites, maybe many of them, had idols in their homes even as they kept the Passover. That may be shocking, but what it shows is, first, God's incredible mercy, and second, that the Passover was not about cleansing Israel from sin, which requires repentance. The Passover had another purpose.
Now, why would God destroy one nation of idolaters (that is, Egypt) and yet deliver another nation of idolaters (that is, Israel)? God's displeasure in Ezekiel is obvious, and He gives no hint that the blood of the Passover lamb was for atonement. Israel's sins weren't being dealt with - God was overlooking them. This is why, according to Strong's, the Hebrew word for Passover (pesach) means, a pretermission; [that is, an] exemption. The word pretermission is hardly used today, but it basically means, an omission. To pretermit means to let pass without mention or notice. It is similar to mercy or grace (see Numbers 14:19; Romans 9:15-18). When Israel was in Egypt, God passed over them and their sins. Moses says this in Exodus 12:27:
This exemption - this sparing; this act of mercy rather than justice - is not the same as paying for or removing their sins. Instead, God overlooked their sins. Thus, the Passover is a demonstration of God's gracious acceptance rather than atonement.