If I expected interest rates to go even more negative, buying a negative yielding bond in anticipation of a capital gain is a rational trade.
Also banks and certain investors are mandated to purchase debt with certain ratings - in the absence of positive-yielding appropriately rated bonds they have no choice but to accept the negative yield.