This could be because you did not properly rub in the butter. A dense texture can also be caused by over-kneading and using flour with too much gluten.