It's totally normal for countries to screen for this stuff both at border entry and as part of the immigration process. In Australia we check at the border if you're coming from a country where they have certain diseases (e.g. yellow fever). If you're applying for some immigration status you need medical checks if you're from certain countries to screen you for certain conditions (e.g. tuberculosis).
It is absolutely the host country's responsibility to do this to keep their own citizens safe.
It is absolutely the host country's responsibility to do this to keep their own citizens safe.