A cupcake can become more dense due to several factors. Overmixing the batter can develop excess gluten, resulting in a dense texture. Using too much flour or not enough leavening agents (baking powder or baking soda) can also contribute to a denser cupcake. Lastly, overbaking the cupcakes can cause them to lose moisture and become dense and dry.