Explain why only Prussia allowed some freedom of religion in the 1700s, But Austria and Prussia attacked and took land away from Poland. 25 words

Prussia allowed religious freedom as it was influenced by Enlightenment ideas, whereas Austria and Prussia attacked Poland for territorial expansion and power gain.