"look godly" ??? they lied about money.
They could have said, no, we sold it for this amount and kept the rest for ourselves. That would have been OK, but they said they sold it for a certain amount and gave all of it them which was a lie. Any time you say these kinds of things you make yourself look more holy to the rest of the believers.