Because "defending democracy" is propaganda for the common people. It's always economics. The US/Europe will support or even install a dictator if the government is pro-western.
Yep, spreading democracy and freedom is PR. I think there's a historical preference to installing or supporting a dictator rather than a messy democracy. There's several cases where democratic elections delivered a government the US didn't agree with, so they orchestrated regime change.