Answer
Beatrice claimed the throne of Portugal because her father, King Ferdinand I, lacked a legitimate male heir. This was due to the fact that Ferdinand's sons from his first marriage had died without issue, while his sons from his second marriage were considered illegitimate. As such, Beatrice was the closest legitimate heir to the throne and, upon her father's death, she succeeded him as Queen of Portugal.