It's a more casual and affectionate way to refer to an older brother compared to the more formal "oniisan".
Here's a breakdown:
* 兄 (ani): Older brother
* さん (san): Honorific suffix, similar to "Mr.", "Ms.", or "Mrs." in English.
So, "niisan" combines the meaning of "older brother" with a friendly, informal tone.