The story takes place in a different epoch, e.g. the Edo period.
Historical manga are a genre that typically focuses on the events of a specific period. It is usually set in a particular region and usually follows one or more protagonists who try to take part in the events.
Historical manga is especially popular in Japan, where it has been an established genre since at least the mid-19th century.