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

Prussia sought religious tolerance, while Austria and Prussia desired expansion.