Hello, MFarooq—and welcome to English Forums. In both your sentences, 'would' is used for 'predictability" or 'characteristic behaviour', as Geoffrey Leech calls it. It is the past form of 'will', which is less often used for the same purpose in the present or future.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
MFarooqother ways to write these sentences1- It's (so frustratingly) typical of them to say that, isn't it?