The creature can take the Disengage or Hide action as a bonus action on each of its turns. (Goblin, pp. 163, MM)