When to build Microservices or a Modular Monolith?

Why would you build a (modular) monolith instead of a microservice? Often people jump on a hype train or go for “resume-driven development” — because everyone needs microservices on their CV, right?