...the type of activity performed.
To get better muscle endurance you need to exercise those muscles.
There are two types of increase: increase of the size of the fibers or a increase in the number of fibers (it's when the muscle fibers divide). Either way, both this methods need training.