Migration takes place when people move to new places in search of opportunities, which involves a high cost.
The benefits of the migration, outweigh the expenditure and hence can be called an investment in human capital formation.
Social medicine involves spreading health literacy amongst people. This creates healthy people and more productive labour.
Investments in social medicine directly lead to the increase of human capital in the labour market and hence can be called an investment in human capital formation.