The main language of Central and South America is Spanish--except for Brazil. Why is the main language of Brazil Portuguese?

Explanation:
Portuguese is the official language of Brazil because Portugal first discovered and colonized the Brazilian land centuries ago