Irine...the US, Canada, Jamaica, UK etc do not have this rule...but...many, many countries have a three to six month expiry rule.
You're legally not allowed to travel without a valid passport and some countries do not want to deal with the possibility of a tourist/traveller overstaying without a legal passport...cautionary.
I've noticed there are A LOT of websites out there that give the wrong information!
If travelling to another country...please check your own governments legal website to confirm passport validity/expiration information...or...just make it easy and make sure your passport is valid the six months after your return date.