If the electrical sub panel is in the same building of the main electrical panel then no main breaker is needed in the sub panel since the main breaker in the main panel can be used to shut off complete power to the sub panel.
However if the sub panel resides in a different building separate from the house like a shed or garage then a main breaker is needed to be able to shut off the power from that location should something happen.